jjzjj

UIDataSourceModelAssociation

全部标签

ios - 对 modelIdentifierForElementAtIndexPath :inView: (UIDataSourceModelAssociation) 的奇怪调用

我目前正在一个仅限iOS6的应用程序中实现自动状态保存/恢复。为了恢复TableView,我将UIDataSourceModelAssociation协议(protocol)添加到我的TableViewController并实现了-(NSString*)modelIdentifierForElementAtIndexPath:(NSIndexPath*)idxinView:(UIView*)view和-(NSIndexPath*)indexPathForElementWithModelIdentifier:(NSString*)identifierinView:(UIView*)vie

ios - UITableViewController 子类实现了 UIDataSourceModelAssociation 协议(protocol),但它的方法从未被调用

我的应用使用斯坦福类(class)的CoreDataTableViewController,它是UITableViewController的子类。对于我的应用程序的特定View,我创建了CoreDataTableViewController的子类来管理特定View。我最近刚刚在我的大部分应用程序中连接了状态编码和恢复功能,一切似乎都运行正常。我唯一迟到的事情是实现UIDataSourceModelAssociation协议(protocol)以据称保留UITableViews的可见和选定行(我也希望它可以保留TableView的编辑状态,如果我选择它来保留特定行的编辑状态删除,但尚未确