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 12-22-2011, 05:18 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 2
dre_bro11 is on a distinguished road
Arrow Long tableviews in Xcode 4.2 (storyboarding)

Hi, I'm making an application which is going to have possibly hundreds of cells in a tableview.

I have two questions. First of all, should I make use of the new 'Static Cells' feature in Xcode, or will this not be a good idea when I've got hundreds of cells?

Second question, for my application, each destination view (the view that a cell press will take you to) will be different from the others, in that there will be different UI elements on each one, along as each view having different coding. So should I make a different view and corresponding .h and .m file for each individual cell in my table view? I am assuming this would not be the way to go, as there may (or may not, I am still quite fresh to obj-c) be quite a performance hit doing this way. Other thoughts I've had for this problem is to programatically create the view depending on which cell was made (would't mind avoiding this way ) or to have a few views for similar layouts and just hide some ui elements, but I'm just lost when it comes to this.

But anyway, If you have a solution for me, please let me know, otherwise good day and thanks for reading!
dre_bro11 is offline   Reply With Quote
Old 12-22-2011, 04:27 PM   #2 (permalink)
Use [code] tags please
 
Join Date: Jun 2009
Location: Jacksonville, FL
Posts: 410
timle8n1 is on a distinguished road
Default

Quote:
Originally Posted by dre_bro11 View Post
Hi, I'm making an application which is going to have possibly hundreds of cells in a tableview.

I have two questions. First of all, should I make use of the new 'Static Cells' feature in Xcode, or will this not be a good idea when I've got hundreds of cells?
Is the number of cells constant?
Does the content and layout of each cell vary?

If the answer to both of these are yes (which I can't imagine with 100) cell then I would say yes. However in storyboard with static cells you are going to have to layout each one - not fun.

My guess is either the number of cells varies based on something or the layout of many of the cells are the same or quite possibly both. In that case I would definitely use prototype cells.

I would be surprised if static cells are the way to go here.


Quote:
Originally Posted by dre_bro11 View Post
Second question, for my application, each destination view (the view that a cell press will take you to) will be different from the others, in that there will be different UI elements on each one, along as each view having different coding. So should I make a different view and corresponding .h and .m file for each individual cell in my table view? I am assuming this would not be the way to go, as there may (or may not, I am still quite fresh to obj-c) be quite a performance hit doing this way. Other thoughts I've had for this problem is to programatically create the view depending on which cell was made (would't mind avoiding this way ) or to have a few views for similar layouts and just hide some ui elements, but I'm just lost when it comes to this.

But anyway, If you have a solution for me, please let me know, otherwise good day and thanks for reading!
I would do as much of the layout as possible with the storyboard. However again do you really have 100 different views that the layout and content is significantly different? If so by all means make each one. But again like the table above I suspect many are the same or very similar and I would create a few pattern views and reuse them.

Without more information thats about all I can say.
timle8n1 is offline   Reply With Quote
Old 12-22-2011, 08:59 PM   #3 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 2
dre_bro11 is on a distinguished road
Default

Hi,

Sorry about not being specific.

Basically, my application is going to be sort of like a unit converter, only much much more advanced, and covering wider areas, not just simple conversions. So, yes the information in te table field will be permanent. There will be a set number of cells, and the information in these cells will stay te same. (The layout and content of my tableview cells is constant).

As for the views, they will all contain textfields and possibly even a custom digit pad, however, for my application, there will be a different number of text fields and the code behind these textfields will differ (for different conversions). So whilst, yes, they are similar in a way, should I just hide/unhinge elements depending on the cell selection, or should I programatically create views, or should I storyboard a single view for each selection?

Also, just so you know, for now the number of cells may only be in the 20s - 30s, but within a few months, it will grow quite dramatically with updates. So if I have to be a little bodgy for now, although I dont want to, I might just have to turn a blind eye and do it until I sort something further out. But then I'm just impacting on my skills and the poor customers!

I am truly sorry for not being more specific, but also appreciate you answering. I you require more information, just let me know.

Last edited by dre_bro11; 12-22-2011 at 09:10 PM. Reason: More info
dre_bro11 is offline   Reply With Quote
Reply

Bookmarks

Tags
tableview, xcode

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: 390
13 members and 377 guests
7twenty7, AppsBlogger, Creativ, Dalia, David-T, Duncan C, HemiMG, heshiming, LunarMoon, Murphy, pbart, teebee74, Tomsky
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,127
Posts: 402,915
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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