Xcode ABPeoplePickerNavigationController完成处理程序试图在单元格中查找文本并获取Null

Xcode ABPeoplePickerNavigationController完成处理程序试图在单元格中查找文本并获取Null,xcode,peoplepicker,Xcode,Peoplepicker,得到一个ABPeoplePickerNavigationController,在它显示后,我想搜索单元格并找到显示的文本,即用户名。然后我想检查用户是否包含在coredata NSSet中。。。我的问题是,我似乎无法从单元格中取回空文本。我知道电池是正确的,因为我可以愉快地玩电池配件类型。示例代码如下所示: [self presentViewController:picker animated:YES completion:^{ // Find the picker tableViewCont

得到一个ABPeoplePickerNavigationController,在它显示后,我想搜索单元格并找到显示的文本,即用户名。然后我想检查用户是否包含在coredata NSSet中。。。我的问题是,我似乎无法从单元格中取回空文本。我知道电池是正确的,因为我可以愉快地玩电池配件类型。示例代码如下所示:

[self presentViewController:picker animated:YES completion:^{
 // Find the picker tableViewController
    UIView *view = picker.topViewController.view;
    UITableView *tableView = nil;
    for(UIView *uv in view.subviews)
    {
        if([uv isKindOfClass:[UITableView class]])
        {
            tableView = (UITableView*)uv;
            break;
        }
    }

// Check tableView not Null then Loop occurs here with this code in it always giving me Null
// I know the tables populated and displayed at this point so why Null ?
 .......       

 NSString *a = [[[tableView cellForRowAtIndexPath:[NSIndexPath indexPathForItem:0 inSection:x]] detailTextLabel] text];

 .......
}];

开始认为这可能与ios6隐私控制有关?

给出了一种不同的方法,我保存了一个ABRecordGetRecordID(person),并用它在cellforrowatinexpath中索引单元格