legacy cell layout warning??

Read Time:28 Second

legacy cell layout  warning??

http://stackoverflow.com/questions/3297270/problem-in-table-view

WARNING: Using legacy cell layout due to delegate implementation of tableView:accessoryTypeForRowWithIndexPath: in <DisclosureButtonController: 0x5f3b0b0>.  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.

ANSWER:

The method tableView:accessoryTypeForRowWithIndexPath: is deprecated in iPhone OS 3.0. Delete the implementation of this method and add the following code in the methodcellForRowAtIndexPath: :

cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.