I am displaying a context menu on the cells of a table view using UIMenuController
.
UIMenuItem *ren = [[UIMenuItem alloc] initWithTitle:@"Rename" action:@selector(onRenameItem:)];
/* .... then set menu visible on long press ...*/
the selector:
-(void) onRenameToken:(id) sender {
/* ...Identify the selected cell??? ... */
NSLog(@"Cell to be renamed is : %@",cell);
}
My question is how do I identify the cell which needs to be renamed. In other words, identify the cell for which the selector is performing?
PS: New to IOS programming. So pardon any terminology mistakes or silly questions.