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

sdkIQ for iPhone
($4.99)

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Dual Matches
($0.99)

Calcuccino Programmers' Calculator
($2.99)

SDKtoday
(free)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-31-2010, 11:32 AM   #1 (permalink)
Dev
 
Join Date: Jan 2010
Location: Tromso/Norway
Posts: 8
Default 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?
ExibeR is offline   Reply With Quote
Old 01-31-2010, 12:45 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: Loveland, OH
Age: 35
Posts: 3,138
Default

You really have 60-65 screens that are each so different that they could not be combined? I highly doubt that.
__________________
My Company: BriTer Ideas LLC
My Services: Code review, consulting, development. PM for details.
My App: SlickShopper

Free NSLog utility

Ways to thank me: Buy my app. Leave a PayPal donation.

Things I've Written That You Should Read:
Definitive Guide To Properties | iPhone Development Resources, Tips, and Tricks | UITableView Series (Last update: 2/24)
BrianSlick is online now   Reply With Quote
Old 01-31-2010, 12:57 PM   #3 (permalink)
Dev
 
Join Date: Jan 2010
Location: Tromso/Norway
Posts: 8
Default

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)
  • Hellbourne Heroes
    • Hero 1
    • Hero 2
    • Hero 3...
  • Legion Heroes
    • Hero 1
    • Hero 2

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.
ExibeR is offline   Reply With Quote
Old 01-31-2010, 01:52 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: Loveland, OH
Age: 35
Posts: 3,138
Default

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.
__________________
My Company: BriTer Ideas LLC
My Services: Code review, consulting, development. PM for details.
My App: SlickShopper

Free NSLog utility

Ways to thank me: Buy my app. Leave a PayPal donation.

Things I've Written That You Should Read:
Definitive Guide To Properties | iPhone Development Resources, Tips, and Tricks | UITableView Series (Last update: 2/24)
BrianSlick is online now   Reply With Quote
Old 01-31-2010, 04:46 PM   #5 (permalink)
Dev
 
Join Date: Jan 2010
Location: Tromso/Norway
Posts: 8
Default

Ok, thank you for the pointers
I´ll recode the program anyways for some better performance aswell.
ExibeR is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 41,861
Threads: 49,768
Posts: 213,054
Top Poster: BrianSlick (3,138)
Welcome to our newest member, melodizzzy
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:58 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0