Difference between revisions of "UITableViewDelegate"

From iPhone Development Wiki
Jump to: navigation, search
(Created page with "==Secondary swipe button== {{function signature |signature=-(NSString *)tableView:(UITableView *)tableView titleForSwipeAccessoryButtonForRowAtIndexPath:(NSIndexPath *)indexPa...")
(No difference)

Revision as of 06:10, 9 April 2014

Secondary swipe button

Signature -(NSString *)tableView:(UITableView *)tableView titleForSwipeAccessoryButtonForRowAtIndexPath:(NSIndexPath *)indexPath;

-(void)tableView:(UITableView *)tableView swipeAccessoryButtonPushedForRowAtIndexPath:(NSIndexPath *)indexPath;

Available in 7.0 –

The two methods above are used to add a second button next to the Delete button when the user swipes on a UITableViewCell. This is the grey More button seen in the Mail app.