Other class view cannot be loaded into TabBar Controller
- by SkyEagle888
Hi,
I am making a project with 3 child views that are switched by a TabBar.
What I did
Create a project (Window-Based)
Add 3 child classes (Window-Based too)
Add a Tab Bar Controller to MainWindow.xib
For each view under Tab Bar Controller, the 'Class', 'Name', 'Title' and 'NIB Name' are all set to connect to the corresponding class
Add @class, IBOutlet are done in AppDelegate.h and AppDelegate.m
In didFinishLaunchingWithOptions, I called [window addSubView: tabBarController.view];
Save and Run -- Tab Bar with 3 items can be seen
But ... the 3 child views ARE NOT LOADED and SHOWN ... :(
Anything that I missed ?
Million Thanks