Reputation: 2627
I have an app with a first view then it displays two views in an UITabBarViewController
.
Unhappily, it seems the ViewDidLoad
method is not called in my two views linked by the Tab Bar. It has to display a title for example, action which is not done.
Here is a photo to illustrate my current work.
Upvotes: 2
Views: 1869
Reputation: 438307
A couple of thoughts:
You say ViewDidLoad
. This is case sensitive and should be viewDidLoad
. Or was that just a typo in the question.
Make sure your child scenes have the appropriate view controller. If you select the view controller in IB, you should see something like the following in the Identity inspector:
If it looks like:
then that means that you may have neglected to specify the view controller subclass.
You've got a weird set of segues from your tab bar controller to your child scenes; it's hard to tell what's going on there or why you've done that, but I'd get rid of those extra push segues. Instead of that mess of segues, it should look something like:
Upvotes: 2