2012-10-11 28 views
1

我正在使用tableview的customcell中的webView,webView覆盖了customcell的总面积。当我点击自定义单元格中的网页视图时,我无法获得indexpath。我已经完成了诸如didSelectRosAtIndexPath的基本编码。如何获得具有webview的customCell的indexpath?

任何人都可以请告诉我当我点击单元格时如何获得一行的indexpath。

回答

0

你试过- (NSIndexPath *)indexPathForCell:(UITableViewCell *)cell

+0

@ demon9733 - 不,如何使用此函数获取indexpath。 – surendher

+0

它返回你的单元格的indexPath。基本上,如果你使用'tableView:didSelectRowAtIndexPath:',在你录制单元格后,这个选择器将被调用。第二个参数将是tapped cell的indexPath。 – demon9733

相关问题