0
当我在常规的tableView获得细胞的textLabel.text(在didSelectRowAtIndexPath方法的方法),我做(和它的作品!):从UISearchDisplayController中的单元格获取单元格的textLabel.text?
UITableViewCell *cell = (UITableViewCell *)[(UITableView *)self.view cellForRowAtIndexPath:indexPath];
NSLog(@"Cell's text: %@",cell.textLabel.text);
当我点击一个单元格,这并不工作在我的UISearchDisplayController。当我在该方法中推入下一个视图控制器时,它将推动。但是我总是为cell.textLabel.text得到“null”。
我在做什么错?
非常感谢!
any ??? ???请! –