Xcode中报错或警告信息整理,持续更新...

 整理报错和警告信息,为以后自己查看方便用!

[报错1]

  信息:Static table views are only valid when embedded in UITableViewController instances

  描述如果 UITableView 不是在 UITableViewController 而是在 UIViewController 中的时候,是不允许将 UITableView 的 Content 属性设置为 Static Cells 的

  解决办法:具体参加以下链接:http://www.tuicool.com/articles/EBrUZb

 

[警告1]

信息:Prototype table cells must have reuse identifiers

描述:在storyboard中,给tableView中拖入tableViewCell,报如上错误,tableView为Dynamic Prototypes(动态原型)时,必须给cell设置重用标识

解决办法:具体可参加以下链接:http://blog.sina.com.cn/s/blog_6f72ff900102uy16.html

 

[警告2]

信息:Sending 'XXXXX *__strong' to parameter of incompatible type 'id<XXXDelegate>'

描述:没有在你的文件的头文件中引用相应代理

解决办法:在头文件中加上代理即可,

@interface XXXXX()<XXXDelegate>

posted @ 2015-12-09 17:17  XA_Fanny  阅读(486)  评论(0编辑  收藏  举报