MSCellAccessory icon indicating copy to clipboard operation
MSCellAccessory copied to clipboard

swift version

Open anbarasu0504 opened this issue 11 years ago • 2 comments

Hi can you create the same in Swift ? Just wanted to learn how the custom initialiser works in swift.

anbarasu0504 avatar Jan 06 '15 13:01 anbarasu0504

simple create a bridging header for Objective C libraries insert:

#import "MSCellAccessory.h"

and then simple use:

cell.accessoryView = MSCellAccessory(type: MSCellAccessoryType.FLAT_DISCLOSURE_INDICATOR, color: self.greyTextColor)

alexookah avatar Aug 06 '15 10:08 alexookah

+1

leverdeterre avatar Apr 01 '16 17:04 leverdeterre