I´m currently developing an application which shows alot of information.
I followed Meyers "Multiple XIB´s" tutorial, and now I´ve ended up at about 60-65 xib files.
I need to show more information in each of the XIB files, so I decided to use a Tab bar to change view within the same XIB. What is the best way to do this, so I don´t have to create 60 x 4 XIB´s?
Right, you should be able to do that with one or two XIBs.
I would make a Hero class. It would have properties along the lines of:
- Clan/Tribe/Group/Whatever name
- Hero name
- Hero info
- Hero image(s) name(s), if needed
- Whatever else is needed to describe a Hero.
Your first view controller would have a table view. You would arrange your list of heros however you want. Tapping on a row would present the second view controller, which would display information based on the current hero. The first view controller would pass in the selected Hero object, and the second view controller would take that and use the information for display.
Basic rule of programming: If you are doing (more-or-less) the exact same thing over and over and over and over and over again, it's time for a rethink.