獲取 UITableView 單個cell 的座標點位置



聊天界面中,長按某個對話,彈出窗口,可以進行選中,複製。

 該彈出窗口的座標確定 用以下方法

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{
  CGRect  popoverRect = [tableView convertRect:[tableView rectForRowAtIndexPath:indexPath] toView:[tableView superview]];

}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章