문제

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.

도움이 되었습니까?

해결책

it's seam like there something wrong with contentOffset.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top