Programme I
When the Navigationcontroller is used, when the interface jumps back and forth, sometimes the TableView or collectionview move up, and it usually automatically moves up to 64 pixels, then this is the case We can turn off the TableView auto-fit layout.
Self.automaticallyadjustsscrollviewinsets = no;//default is yes
Scenario Two:
When the TableView overall move up, you can of course modify each View in Xcode and move them down by 20 pixels (status bar height) or 64 pixels (status bar + navigation bar height).
But Apple has apparently taken this into account, and they have provided a new edgesforextendedlayout for Viewcontroller in the IOS 7 SDK. If you set this property to Uirectedgenone, all child views of Viewcontroller will be adjusted automatically.
Currently, it is also applicable to different system version code changes when the situation occurs.
Self.edgesforextendedlayout = uirectedgenone;//Recommended
Transferred from: http://www.cnblogs.com/ZGSmile/p/5476354.html
ios-solution when encountering tableview overall move-up