1调用以下方法:
UITableViewCell
*cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; 2.报错 |
***
Terminating app due to uncaught exception 'NSInvalidArgumentException' ,
reason: '-[UITableView
dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0x7257800' 3.分析:dequeueReusableCellWithIdentifier:forIndexPath,问题出在IndexPath上面, 后来我删除了forIndexPath:indexPath,使用下面的方法: UITableViewCell
*cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
结果就成功了,我现在用的是Xcode6.1的版本。
|