I am having issues with subviews not loading for a view controller this happens after having added a UITabBarController to a storyboard.
You can reproduce this by 1) Creating a project (Objective c single pane) 2) Delete the contents in the story board. Add a Tab View Controller. 3) Add a view controller with some subviews 4) Set the view controller from three as initial.
Output: I am sure the subview is not loading because when I use debugger I see only the layout guides in viewDidLoad
(lldb) po self.view.subviews
<__NSArrayM 0x7f9a20417df0>(
<_UILayoutGuide: 0x7f9a20416d40; frame = (0 0; 0 0); hidden = YES; layer = <CALayer: 0x7f9a20415820>>,
<_UILayoutGuide: 0x7f9a204176e0; frame = (0 0; 0 0); hidden = YES; layer = <CALayer: 0x7f9a20415b50>>
)
If I create a second storyboard and point the app to that and create a view controller there. It works as expected.
I can even copy paste the view controller from the second storyboard into the first and this will work also
Even if I delete the TabviewController and friends from the storyboard the storyboard remains broken.