ios - How to Add more button to UITableViewCell When scrolling it? -


When we are scrolling (slide to the left) UITableViewCell , it displays a deleted button Does, but I want to add another button to it, how should I do it?

The style I want is similar to the system mail app in iOS 7, there are two buttons in the UTibalViewewell, one is the delete button, the other is

thanks

Please

You can create more examples using this example approach

< / P>

Enter image details here

This link example is useful and You can customize more buttons.

Enter image details here

< Pre> - (UITableViewCell *) TableView: (UITableView *) Table View CellForouaitindPath: (NSIndexPath *) indexPath {static NSString * cell identifier = @ "cell"; SWTableViewCell * cell = (SWTableViewCell *) [tableview dequeueReusableCellWithIdentifier: cellIdentifier]; If (cell == blue) {NSMutableArray * leftUtilityButtons = [NSMutableArray new]; NSMutableArray * rightUtilityButtons = [NSMutableArray new]; [LeftUtilityButtons addUtilityButtonWithColor: [UIColor colorWithRed: 0.07 green: 0.75f ​​blue: 0.16f alpha: 1.0] Icon: [UIImage imageNamed: @ "check page"]]; [LeftUtilityButtons addUtilityButtonWithColor: [UIColor colorWithRed: 1.0f green: 1.0f blue: 0.35f alpha: 1.0] Icon: [UIImage imageNamed: @ "clock.png"]]; [LeftUtilityButtons addUtilityButtonWithColor: [UIColor colorWithRed: 1.0f green: 0.231f blue: 0.188f alpha: 1.0] Icon: [UIImage imageNamed: @ "cross.png"]]; [LeftUtilityButtons addUtilityButtonWithColor: [UIColor colorWithRed: 0.55f green: 0.27f blue: 0.07f alpha: 1.0] Icon: [UIImage imageNamed: @ "list.png"]]; [Right capacitance addUtilityButtonWithColor: [UIColor colorWithRed: 0.78f green: 0.78f blue: 0.8 F alpha: 1.0] Title: @ "more"]; [RightUtilityButtons addUtilityButtonWithColor: [UIColor colorWithRed: 1.0f Green: 0.231f Blue: 0.188 alpha: 1.0f] Title: @ "Delete"]; Cell = [[SWTableViewCell alloc] initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: cell identifier containing tableview: _tableView // line height and left for selectionUtilityButtons: leftUtilityButtonsCreated ApplianceBitons: correct utilitybuttones]; Cell.delegate = self; } NSDate * dateObject = _testArray [indexPath.row]; Cell.textLabel.text = [dateObject description]; Cell.detailTextLabel.text = @ "Some Description Text"; Return cell; }

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -