Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Mar 16, 2012, 03:24 AM   #1
macrumors newbie
Join Date: Mar 2012
UITabBarController delegate with storyboard

Hi developer's, i need help please,
I know that if i have rootViewController that start with tabBar i can create UITabBar like this:
UITabBarController *tabController = (UITabBarController *)self.window.rootViewController; 
tabController.selectedIndex = [defaults integerForKey:kOptionLastTabSelectedKey]; 
tabController.delegate = self;
But my problems is:
First, how can i create tabBar if the tabBar is not my rootView? my app start with login that is simple viewController, and after login the tabBar will appear.
Second, where should i create the tab bar, in appDelegate or some else?

lsegev is offline   0 Reply With Quote
Old Mar 16, 2012, 09:46 AM   #2
dejo's Avatar
Join Date: Sep 2004
Location: The Centennial State
According to Apple:
When deploying a tab bar interface, you must install this view as the root of your window. Unlike other view controllers, a tab bar interface should never be installed as a child of another view controller.
So, how to do a login view that appears before the tab view? I've had success by making the tab view the root view and then presenting the login view modally.
dejo is offline   1 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Does anyone like storyboard? nashyo iPhone/iPad Programming 11 Mar 6, 2012 05:56 PM
Two viewControllers, but 1 viewController Scene in Storyboard at0m87 iPhone/iPad Programming 0 Mar 4, 2012 11:50 AM
using splash screen with storyboard johnmerlino iPhone/iPad Programming 5 Dec 8, 2011 11:44 AM
Creating Your Own iMovie11 Storyboards/Templates Ciordia9 Mac Applications and Mac App Store 1 Nov 17, 2010 06:49 PM
UITabBarController delegate methods sujithkrishnan iPhone/iPad Programming 1 Jun 4, 2009 07:23 AM

All times are GMT -5. The time now is 04:41 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013,, LLC