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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

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 08-05-2010, 07:17 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 25
drnkHobo is on a distinguished road
Default ..::View Controller Madness::..

Hey guys, im planning for a new ap im doing and was just wondering if you could help.

You see, this app will basically look like the home screen with "app" icons and a page/swipe function to get to the next page of icons.Like the home screen. . .

Now the "apps" are just buttons.They are companies.What I mean is they represent different companies.When you click a company icon, a tableview appears.You can click a cell and go into a detail view too.It will describe the selected company ect.

This is what I planned to do:

Have a root controller to handle the switching of pages in the main screen.
Have view controllers for each page.
Then have view controllers for each company.

this would mean quite alot of view controllers as there are 30+ companies in my list....

The question I pose is this:

Would it not be better to have a "temp" view controller which would handle ALL the companies?

So I make a VC and use a few case statements to see which company info to load up.

Can I do that?


thanks guys!!!!
drnkHobo is offline   Reply With Quote
Old 08-05-2010, 07:31 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
George0107 is on a distinguished road
Default

Someone here was working with that a while ago.

They created a generic class (UINavigation control) and a custom class to handle how deep the Menus go.

If I remember right, when the user clicked a parent menu to go into it's sub menus, the generic class would be cleared of all menus and pop up the new menu's for that parent menu. (All data was obtained by parsing an XML file)

Yes, an easier approach would be just 1 class to handle them all, because having 30 is a lot, and plus what if you want to add new companies later?
George0107 is offline   Reply With Quote
Reply

Bookmarks

Tags
temp, view controller

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
» Online Users: 321
10 members and 311 guests
alexP, arash5500, gordo26, HemiMG, mediaspree, nobstudio, Objective Zero, Sloshmonster, stanny, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:25 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0