iPhone Development Tutorial - 28 - Adding a root controller
Top Comments
All Comments (29)
-
For Xcode 4.2 Users follow this Link.
w w w.trappers.tk/site/2011/06/16/
mainwindow-xib/. It will show you how to create an AppDelegate object and how to link it all together.
-
@cheesefour Thanks dude you can make a career by adding comment like this to every tutorials.
-
Hey when I try to select the nib file it doesn't show me DatePecker,DoublePecker....
For that reason if i write it manually I get an error when I press on the toolbar!
Xcode 4
-
@cheesefour Thanks :-)
-
I on't even have an AppDelegate thing to drag from in my placeholder or objects in the xib. Can someone please help me? How do I assign the rootController to Tab Bar Controller then?
-
working on Xcode 4, i can't drag AppDelegate down to Tab Bar Controller... any suggestions?
-
@consoto you will also need to type in the nib name but it should work fine
-
@consoto With the help of the people on the forums, the solution to this is that you need to add [self.window addSubview:rootController.view
]; in the app delegate implementation file. -
When I go to the dropdown menu for the nib name, nothing shows up. I working in Xcode 4 and I've done everything up to that point. What's the problem?
are you gonna do openGL?
TheHackersGambit 1 year ago 21
XCODE 4 USERS!:
You can simply drag the tab bar over like before, but to add more items to the tab bar simply drag TAB BAR ITEMS. The icon for these is a star. The tab bar items should be the last things in the objects list, or at least right under the tab bar you just dragged over. Hope it helps!
cheesefour 6 months ago 10