学习中遇到的坑,暂时还未解决,先记录下来。
最近在研究Autolayout,也写了一些demo,其中在用AutoLayout实现一个ScrollView的下拉刷新时遇到一个问题:
在ios7中使用AutoLayout在UITableView添加一个子视图时报以下错误:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Auto Layout still required after executing -layoutSubviews. UITableView's implementation of -layoutSubviews needs to call super.
在网上查了不少资料,说是AutoLayout在ios6的一个bug,在IOS7上已经解决了,但实际使用还是遇到了这个问题,有可能还是没修复。
网上也找到一些解决的办法:
比较多的说法是说给UITableView添加一个分