How can I create dynamically updated views in a tab bar view, based on settings selection?

Posted by Diggers on Stack Overflow See other posts from Stack Overflow or by Diggers
Published on 2009-05-07T11:15:52Z Indexed on 2010/04/20 15:03 UTC
Read the original article Hit count: 142

Hi all,

Noob question....

I've created a Tab Bar application. It has four tabs and works fine. Each view is created with a XIB and is effectively static. Each view takes user input and responds on screen.

What I need to be able to do is change the input options the user have - in effect remove some UITextFields dependant upon which option the user selects in settings.

I've created root.plist and created settings no problem i've also created additional XIBS for the altered UI, but what I don't know how to do, is call these into the tab view controller on demand. Effectively tab one has 3 possible views, tab two 3 possible views etc. But I only want the one that's relevant for the users settings selction to be displayed?

Make sense?

For reference, if we call the different views - UIInputViewA1, ...A2,....A3 UIInputViewB1,....B2....B3 etc.

Hope someone can help, been trawling the net for nights trying to get my head round this. Beggining iPhone Development Bible doesn't help either.

If you need any more info, please shout.

Cheers

Paul.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about iphone