Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my UITableview Y origin changing based upon the position in TabBarController

Upon clicking the button on the first screen the user is presented with view controllers contained within a tab bar controller. The view controllers have two tableviews in them, the first a top static table and a second table just below. The view controllers in the tab bar controller that are not within the "more" display correctly. If I go to "more" and select a view controller the view is displayed with the top cell pushed down.

If I go to the "more" screen, click edit, and move the order of view controllers in any way, view controller displayed through "more" display correctly. Upon leaving the "more" section the top table cell (top table) is not displayed.

It seems reasonable to me that there is an issue in the UI or storyboard, however nothing jumps out at me as the issue. I've tried both manually setting constraints and also using suggested constraints.

This sample project is available at https://github.com/propstm/NavigationStructureTest

Top two images are prior to modifying the order of view controllers in the tab bar controller.  The bottom two, after.

like image 305
propstm Avatar asked Jul 03 '15 14:07

propstm


1 Answers

I simply updated the constraints in the Two Table VC , then the issue was not there.

top tableview constraints

bottom tableview constraints

like image 136
Sujith Chandran Avatar answered Oct 20 '22 07:10

Sujith Chandran