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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-12-2008, 01:29 PM   #164 (permalink)
mchipman
New Member
 
Join Date: Nov 2008
Posts: 1
mchipman is on a distinguished road
Default Programatically adding new tab bar items on startup

Hello everyone.

I have viewed all that has been said in this thread about creating tabbars in code as well as in IB. I would like to keep using everything in IB because of the lazy loading aspects it offers.

What I need to be able to do is this:
1. At startup, a user logs in, and his/her role(s) is discovered. Once this info is known, for each role that he/her has rights, a separate tabbar item for each role is to be created that isolates (encapsulates) that role functionality into separate navcontroller/view controller stacks. Thus a role of "user" would have a tabbar item called "User" and likewise a role of "admin" would have a tabbar item called "Admin".

I know this can be all done programatically, but is there a way to do this using IB allowing dynamically adding ONLY the appropriate tab items on-the-fly, only when this xib file is referenced instead of statically building the view with the tabbars items that would contain all possible roles?

A sample app project demonstrating this would be a huge help!

Regards,

-Mark
mchipman is offline   Reply With Quote
 

» Advertisements
» Online Users: 428
12 members and 416 guests
Arty Tales, carmeliaxw97, DaveDee, dbramhall, demas, gogoman, heshiming, MarkC, Pitter20, raymng, Renrob, roof44
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,594
Threads: 94,083
Posts: 402,778
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kopmlop
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:56 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.