今天ios遇到一个bug, UITableView的contentOffset会在内容不满一页的时候被reset, 其他时候正常, 而且这个bug只在有tabbar的地方出现, 经过调试, 发现是UIViewAutoresizingFlexibleHeight导致的. 网上有人说改变UITableView的大小会导致contentOffset被reset, 看来这个也是这个原因了.
一些其他的资料:
iphone - iOS Keyboard Location and Orientation - Stack Overflow 这个可以学viber那样让键盘随着tableview一块滚动, 具体效果可以参考viber的聊天界面
/questions/10955888/ios-keyboard-location-and-orientation
Cocoapods一覧 很多实用的三方库
/Mobile/2013/03/27/cocoapods-list/
ios - Is it possible to add observer to ? - Stack Overflow
/questions/12087848/is-it-possible-to-add-observer-to-tableview-contentoffset