Other class view cannot be loaded into TabBar Controller
Posted
by SkyEagle888
on Stack Overflow
See other posts from Stack Overflow
or by SkyEagle888
Published on 2010-06-07T03:29:07Z
Indexed on
2010/06/07
3:32 UTC
Read the original article
Hit count: 227
iphone
|iphone-sdk
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
© Stack Overflow or respective owner