传统单元格布局?

我在控制台中得到了这个,这意味着什么,我该如何解决?

2011-07-18 22:08:31.004 App [4176:707]警告:由于委托实现tableView:accessoryTypeForRowWithIndexPath:<Settings:0x250c60>,所以使用传统单元布局。 请删除此方法的实现,并将单元格属性accessoryType和/或editingAccessoryType设置为移至新的单元格布局行为。 这个方法在以后的版本中将不再被调用。

编辑:这是iOS,这里是方法:

- (UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath { switch (indexPath.row) { case 2: return UITableViewCellAccessoryDisclosureIndicator; break; case 3: return UITableViewCellAccessoryDisclosureIndicator; break; case 4: return UITableViewCellAccessoryDisclosureIndicator; break; } return UITableViewCellAccessoryNone; } 

这意味着您正在实施已弃用的方法,因此系统正在使用向后兼容模式。

您应该按照消息的build议进行操作:删除tableView:accessoryTypeForRowWithIndexPath: ,而是将相应的值分配给accessoryType和/或editingAccessoryType属性。