swift 错误记录1
2017-02-20 本文已影响0人
YL解节
错误信息:.........this class is not key value coding-compliant for the key...............
错误原因:因为自定义cell 的xib文件和.swift不是同时创建,而是后期关联的。值得注意的是要设置xib中tableViewCell对应的CustomClass,不是File's Owner
如图:

错误信息:.........this class is not key value coding-compliant for the key...............
错误原因:因为自定义cell 的xib文件和.swift不是同时创建,而是后期关联的。值得注意的是要设置xib中tableViewCell对应的CustomClass,不是File's Owner
如图: