indexPathForCell returns nil since ios7

-(UITableViewCell*)GetCellFromTableView:(UITableView*)tableView Sender:(id)sender {
    CGPoint pos = [sender convertPoint:CGPointZero toView:tableView];
    NSIndexPath *indexPath = [tableView indexPathForRowAtPoint:pos];
    return [tableView cellForRowAtIndexPath:indexPath];
}


http://stackoverflow.com/questions/18743099/indexpathforcell-returns-nil-since-ios7
posted @ 2015-02-02 19:14  lianhuaren  阅读(260)  评论(0编辑  收藏  举报