UIDataSourceModelAssociation协议的使用问题

絶体絶命 2017-02-26 01:23:43
UIDataSourceModelAssociation协议的使用问题

自己打算实现对tableView行选中的操作保存。
实现了UIDataSourceModelAssociation
的两个代理方法

func modelIdentifierForElement(at: IndexPath, in: UIView)
Returns the string that uniquely identifies the data at the specified location in the view.

func indexPathForElement(withModelIdentifier: String, in: UIView)
Returns the current index of the data object with the specified identifier.

断点发现方法从未执行。

求经验者解答
...全文
132 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Fearmonger 2017-02-28
  • 打赏
  • 举报
回复

29,031

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧