Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- display UIMenuController on tab on cell
- - (BOOL)tableView:(UITableView *)tableView shouldShowMenuForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- return YES;
- }
- - (BOOL)tableView:(UITableView *)tableView canPerformAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender
- {
- return (action == @selector(copy:));
- }
- - (void)tableView:(UITableView *)tableView performAction:(SEL)action forRowAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender
- {
- if (action == @selector(copy:))
- NSLog(@"in real life, we'd now copy somehow");
- }
Advertisement
Add Comment
Please, Sign In to add comment