1

单击时如何在 UITableViewCellAccessoryDe​​tailDisclosureButton 下显示 UIMenuController?

当用户点击 UITableViewCellAccessoryDe​​tailDisclosureButton 时,有一个关于如何显示选项的答案代码,但它没有“AddRouteMenuItem”,有人知道吗?

此致

4

1 回答 1

1
-(void)clickOnDetailDisclosureButton
{
   UIMenuController *menuController = [UIMenuController sharedMenuController];
    [menuController setTargetRect:[self.tableView rectForRowAtIndexPath:pressedIndexPath] inView:self.tableView];
    [menuController setMenuVisible:YES animated:YES];
}
于 2013-01-19T10:27:17.330 回答