Encounter a problem, a page has a uitableview, in the iOS8 click on the image or link push to the next page and then return, the bottom of the tableview is covered at the bottom of the screen, only the moment to swipe to see. There is no such problem on the iOS7 system.
Simple positioning, is in return when the UITableView contentsize automatically become smaller, first contact with this problem, it is quite bizarre, because after the return code to contentsize did not make any changes. So, is the system automatically modified for contentsize?
Search for this article: (IOS) about UITableView settings contentsize, probably know the reason, UITableView contentsize is generally calculated automatically, even if you change the time will always be automatically calculated at some point, This automatic calculation is triggered when the return is probably made.
Looked at the previous code, indeed someone to set up the place contentsize, then, now is good to do, to avoid human settings on the line. The reason for setting up Contentsize is because a custom view has been added to the top of the TableView, and the view is TableView Addsubview and Setcontentinset. TableView does not calculate the custom view when it calculates contentsize automatically.
Think of TableView has a Tableheaderview attribute, I add a custom view through this property, I do not have to calculate the contentsize, the problem is resolved.
Contentsize automatic change of UITableView under IOS8