 |
 |
|
 |
01-31-2010, 11:32 AM
|
#1 (permalink)
|
|
Dev
Join Date: Jan 2010
Location: Tromso/Norway
Posts: 8
|
Tab bar or any other solution
Greetings,
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?
|
|
|
01-31-2010, 12:45 PM
|
#2 (permalink)
|
|
Emphasizing Fundamentals
Join Date: Jul 2009
Location: Loveland, OH
Age: 35
Posts: 3,138
|
You really have 60-65 screens that are each so different that they could not be combined? I highly doubt that.
|
|
|
01-31-2010, 12:57 PM
|
#3 (permalink)
|
|
Dev
Join Date: Jan 2010
Location: Tromso/Norway
Posts: 8
|
I´m pretty new to the iPhone platform, and haven´t developed for mac platform either.
I´ll try to explain how my program works:
Main Menu (Menu)
And when you click on one of the heroes, you receive information about that hero.
I don´t know the best way to do this, but I´ve managed to do it with a sh*tload of xibs.
Last edited by ExibeR; 01-31-2010 at 01:00 PM.
|
|
|
01-31-2010, 01:52 PM
|
#4 (permalink)
|
|
Emphasizing Fundamentals
Join Date: Jul 2009
Location: Loveland, OH
Age: 35
Posts: 3,138
|
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.
|
|
|
01-31-2010, 04:46 PM
|
#5 (permalink)
|
|
Dev
Join Date: Jan 2010
Location: Tromso/Norway
Posts: 8
|
Ok, thank you for the pointers 
I´ll recode the program anyways for some better performance aswell.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 395 |
| 31 members and 364 guests |
| AdamSubach, aderrington, airsoft808, benoitr007, bensj, BrianSlick, Danneman, dev123, ErichGS, gtyt38, gustavo7sexton, HemiMG, Jeremy1026, lifeCoder45, melodizzzy, mriphoneman, Ovidius, Paul10, Piequanna, pofak, qilin, Racker, raheel, Sega dude, socals, squidboy, timle8n1, ZunePod |
| Most users ever online was 965, 06-30-2010 at 04:26 AM. |
» Stats |
Members: 41,861
Threads: 49,768
Posts: 213,054
Top Poster: BrianSlick (3,138)
|
| Welcome to our newest member, melodizzzy |
|