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

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-31-2010, 02:52 PM   #4 (permalink)
BrianSlick
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
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.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
 

» Advertisements
» Online Users: 266
18 members and 248 guests
ADY, apatsufas, ckgni, F_Bryant, IphoneSdk, jakerocheleau, karunaskj, MarkC, michelle, NSeven, rob.mccarthy, rodrigozanatta, smethorst, themathminister, TheWebWizz, V_SC&, Xaron, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,711
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:21 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.