Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-12-2009, 08:37 PM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 4
Default Multiple view application ...

Hey Guys ...

I am new to iPhone development... I have read a few things and tried some basic stuff.. Now I am trying to build an application .. where in the user is first shown a login screen. In this view there is no toolbar or tab bar or navigation control ... the user is just provided with the login-in and password fields and the sign-in button.

Once the user provides the proper credentials, i want to show a new view, which has tabbar control. Based on the tab item selected in the tabbar ... the view being show could have just a table view or table view + navigationbar control.

Any help on this could be done ?

I am able build a small application to just show the login screen and validate the user credentials ..
Also a different application where i build a tabbarviewcontroller and show associate various views to the each of the tabbar item.

I am not sure on how to combine the two !!

Any help would be really appreciated.

Regards.
newinnings is offline   Reply With Quote
Old 04-14-2009, 12:35 PM   #2 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 4
Default its working for me now .. Thanks anyways...

its working for me now .. Thanks anyways...
newinnings is offline   Reply With Quote
Old 04-16-2009, 12:29 PM   #3 (permalink)
Vishal
 
Join Date: Feb 2009
Location: Pune, India
Posts: 76
Default

Quote:
Originally Posted by newinnings View Post
its working for me now .. Thanks anyways...
Hi,

I have to develop same kind of application but without login screen. Can you share how you have done this. I have one window in which i mage is displayed and a tab bar in that windows having settings button. when settings button get pressed I have to display different view containing settings options.

Can you share the logic/code for this.

Vishal N
vishal is offline   Reply With Quote
Old 04-16-2009, 02:12 PM   #4 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 4
Default

Quote:
Originally Posted by vishal View Post
Hi,

I have to develop same kind of application but without login screen. Can you share how you have done this. I have one window in which i mage is displayed and a tab bar in that windows having settings button. when settings button get pressed I have to display different view containing settings options.

Can you share the logic/code for this.

Vishal N

Vishal, you need to create a window based application.
In the MainWindow.xib add 2 controllers ... one of type UIViewController
and the other would the TabBarViewController.

In the app delegate applicationDidFinishLaunching method , do a [window addSubview:firstcontroller.view] for the view from the 1st controller.

and then for the required IBAction method on the 1st view controller, get the Appdelegate using the statement

myAppDelegate *delegate = [ [UIApplication sharedApplication] delegate];

and then on the delegate.window , you could do a addSubview or insertsubview for the view of the second controller (i.e. the UITabBarController)

Hope this helps ...

enJoy.

Last edited by newinnings; 04-16-2009 at 03:20 PM.
newinnings is offline   Reply With Quote
Old 04-16-2009, 02:21 PM   #5 (permalink)
Vishal
 
Join Date: Feb 2009
Location: Pune, India
Posts: 76
Default

Quote:
Originally Posted by newinnings View Post
Vishal, you need to create a window based application.
In the MainWindow.xib add 2 controllers ... one of type UIViewController
and the other would the TabBarViewController.

In the app delegate applicationDidFinishLaunching method , do a [window addSubview:firstcontroller.view] for the view from the 1st controller.

and then for the required IBAction method on the 1st view controller, get the Appdelegate using the statement

myAppDelegate *delegate = [ [UIApplication sharedApplication] delegate];

and then on the delegate.window , you could do a addSubview or insertsubview for the view of the second controller (i.e. the UITabBarController)

Hope this helps ...

enJoy.
-Vishal
Thanks for the instant reply.

Can I invoke navigationController instead of UITabBarController on IBAction?

Vishal N
vishal is offline   Reply With Quote
Old 04-16-2009, 03:19 PM   #6 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 4
Default

Quote:
Originally Posted by vishal View Post
Thanks for the instant reply.

Can I invoke navigationController instead of UITabBarController on IBAction?

Vishal N
I think u can ... just make sure you have the root view controller set for the navigationcontroller .....

enJoy,
newinnings is offline   Reply With Quote
Old 04-17-2009, 12:23 AM   #7 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 62
Default

Check out the amazing video tutorials. They cover all this stuff.

Welcome to the iPhone Development Central Website!
GRANDxADMIRAL is offline   Reply With Quote
Old 08-26-2011, 01:31 AM   #8 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 2
Default

Quote:
Originally Posted by GRANDxADMIRAL View Post
Check out the amazing video tutorials. They cover all this stuff.

Welcome to the iPhone Development Central Website!
I could not open this link. Can you please post the updated link
anilvooty is offline   Reply With Quote
Reply

Bookmarks

Tags
multiple view, navigation bar, tabbar

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 257
19 members and 238 guests
2WeeksToGo, @sandris, AdamL, ADY, BrianSlick, Dani77, diyora, F_Bryant, GHuebner, HDshot, headkaze, mer10, prchn4christ, Rudy, smithdale87, Thompson22, timle8n1, Touchmint, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,748
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0