WARNING: Using legacy cell layout due to delegate implementation of tableView:accessoryTypeForRowWithIndexPath: in *nil description*. Please remove your implementation of this method and set the cell properties accessoryType and/or editingAccessoryType to move to the new cell layout behavior. This method will no longer be called in a future release.
- (UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath {
return UITableViewCellAccessoryDetailDisclosureButton;
//return UITableViewCellAccessoryDisclosureIndicator;
}
本文解决了一个关于UITableView的警告问题,该警告提示使用了过时的单元格布局。文章提供了一段Swift或Objective-C代码作为示例,展示了如何设置UITableViewCell的accessoryType属性来避免此警告,并建议开发者更新实现方式以符合新的单元格布局行为。
9931

被折叠的 条评论
为什么被折叠?



