warning in uitableview
I complied using iOS 4.1 for uitableview 开发者_StackOverflow社区program. What has to be done ?
WARNING: Using legacy cell layout due to delegate implementation of tableView:accessoryTypeForRowWithIndexPath: in . 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.
Do exactly what the warning message says: remove the implementation of tableView:accessoryTypeForRowWithIndexPath:
and set the cell's accessoryType
and editingAccessoryType
in tableView:cellForRowAtIndexPath:
instead.
From the documentation of tableView:accessoryTypeForRowWithIndexPath
:
(Deprecated in iOS 3.0. Use the accessory-view and accessory-type properties (for both normal and editing modes) of the UITableViewCell class when configuring table-view cells.)
精彩评论