UITableViewDelegate

From iPhone Development Wiki
Jump to: navigation, search

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.

References