读书人

UITableView高级技艺根据按钮位置取in

发布时间: 2013-07-09 09:50:48 作者: rapoo

UITableView高级技巧根据按钮位置取indexPath
通到取得在tableView中的位置,取得所在indexPath

UIButton *button = sender;
CGPoint correctedPoint = [button convertPoint:button.bounds.origin toView:self.myTableView];
NSIndexPath *indexPath = [self.myTableView indexPathForRowAtPoint:correctedPoint];

读书人网 >移动开发

热点推荐