ios开发小记

来源:互联网 发布:重庆那可以学美工 编辑:程序博客网 时间:2024/05/20 16:33

今天ios遇到一个bug, UITableView的contentOffset会在内容不满一页的时候被reset, 其他时候正常, 而且这个bug只在有tabbar的地方出现, 经过调试, 发现是UIViewAutoresizingFlexibleHeight导致的.  网上有人说改变UITableView的大小会导致contentOffset被reset, 看来这个也是这个原因了.

一些其他的资料:

iphone - iOS Keyboard Location and Orientation - Stack Overflow    这个可以学viber那样让键盘随着tableview一块滚动, 具体效果可以参考viber的聊天界面

http://stackoverflow.com/questions/10955888/ios-keyboard-location-and-orientation


Cocoapods一覧   很多实用的三方库

http://matsu911.github.io/Mobile/2013/03/27/cocoapods-list/


ios - Is it possible to add observer to tableView.contentOffset? - Stack Overflow

http://stackoverflow.com/questions/12087848/is-it-possible-to-add-observer-to-tableview-contentoffset


原创粉丝点击