Today, IOS encountered a bug. The contentoffset of uitableview will be reset when the content is less than one page. It is normal in other cases, and this bug only appears in the tabbar. After debugging, it is found that it is caused by uiviewautoresizingflexibleheight. some people on the Internet say that changing the uitableview size will cause contentoffset to be reset. It seems this is also the reason.
Some other materials:
IPhone-Ios keyboard location and orientation-stack overflow this can let the keyboard scroll with tableview as viber learns. For details, refer to viber's chat interface.
Http://stackoverflow.com/questions/10955888/ios-keyboard-location-and-orientation
Cocoapods a large number of practical third-party Libraries
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