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