开发者

warning in uitableview

开发者 https://www.devze.com 2023-01-21 03:19 出处:网络
I complied using iOS 4.1 for uitableview 开发者_StackOverflow社区program. What has to be done ? WARNING: Using legacy cell layout due

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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消