Question

I have added a placeholder view to add new subview base on the selected segmented. One of the subview is an UITableViewController and this load another view when cell is selected. But when the app is push back from this third view, the UITableView is shift down a bit. I suppose this is due to new navigation bar been added to main subview. This illustrate more on following images.

I have followed this post Gap between navigation bar and subview ios? and that didn't work for me.

Before navigating to subview Before navigating to subview

After coming back to main view After pushing back to main view subview

How can I get rid of this extra space? I am using the storyboard and iOS7. Thank you.

Was it helpful?

Solution

it's seam like there something wrong with contentOffset.

Also have a look on iOS7 automaticallyAdjustsScrollViewInsets and edgesForExtendedLayout
You can read more here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top