弹出菜单框

 UIMenuItem *menuItem1 = [[UIMenuItem alloc] initWithTitle:@"删除" action:@selector(deleteCell:)];
UIMenuItem *menuItem2 = [[UIMenuItem alloc] initWithTitle:@"恢复" action:@selector(reviewCell:)]; UIMenuController *menu = [UIMenuController sharedMenuController];
[menu setMenuItems:@[menuItem1,menuItem2]];
[menu setTargetRect:cell.frame inView:self.view];
[menu setMenuVisible:YES animated:YES];
05-11 13:50