2016-11-21 26 views
-1

如何显示UITableview中每个单元格中每个单词的编辑菜单? 下面的图片是我想要做的一个例子。我希望能够从每个单元格中查看的标签中选择一个单词,并显示该单词的编辑菜单。在uitableviewcell的视图中编辑菜单

enter image description here

+0

默认情况下,编辑菜单将出现,你是否禁用任何地方的用户交互 – Vinodh

+0

@Vinodh否我已启用所有用户交互 –

回答

-1

你需要把一些代码的tableview委托里面。

(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 
    //fetch the content of label ex: "cell.labelName.text" 
    //Then put it on text box and allow editing ex: 

    textBox1.text=cell.labelName.text 
    textBox1.userInteractionEnabled=YES; 

}