I’m SUPER new to mac and Objective C. Interface builder is also new. I’m trying to get a UITabBar with three UITabBarItems to freeze, or dock, or stay at the bottom of the screen. I’ve tried a few different things in IB, but no luck… any pointers?
Notice the big white gap at the bottom.
Thank you,
If you’re just starting, the easiest way to do this — by far — is to simply select the Tab Bar Application template when you create your project.
The UITabBar needs to belong to the window (for learning’s sake), not stuck in one of your views. In your AppDelegate the
application didFinishLaunchingWithOptionsmethod is where subviews are added to your window. If you use the template I mentioned, the end of this method looks like this:instead of having your viewController added. The views that are attached to each tab are associated with the tab bar in Interface Builder (again, for learning’s sake).