ブロックを使用して、このように委任を処理できます
UIMenuItem.h
@property (nonatomic, copy) void (^onButtonClicked)(id btn);
UIMenuItem.m
@synthesize onButtonClicked;
- (IBAction)btnExpandClicked:(id)sender{
self.onButtonClicked(sender);
}
各メニュー項目に接続されます
次に、あなたの UITableViewController.m
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
...
item.onButtonClicked = ^(id btn) {
// code that will run when the menu item is clicked "not the row of the table"
// btn is the menu button clicked, you can implement a pop up based on each menu button clicked ( based on the tag for example )
};