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 Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 06-30-2011, 02:39 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 14
hiaw is on a distinguished road
Lightbulb Sharing code for custom menu/setting tableview

Hi,

I'm sharing my code for custom menu/setting table view. I thought this is a very nice solution to the problem I had.

So I had a menu/setting page which the content will change depending on what the user's doing to it and which in app purchase they had purchased.

I was doing it the old fashion way of returning exactly the right cell for the table view and end up with many many if, else and switch statements.

I decided my code was functional but will be a horror to maintain in the future. So I refactor the code by maintaining an NSArray for the cells and related section and header, footer etc. And the resultant code is what I'm sharing in Github. I found the solution works elegantly to my problem and my code is more maintainable in the future now.

Cheers

Get the code here

View the post here
hiaw is offline   Reply With Quote
Old 09-24-2011, 02:13 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 2
Judiml is on a distinguished road
Default

Nice solution-thanks!
Judiml is offline   Reply With Quote
Old 01-16-2012, 03:50 AM   #3 (permalink)
Registered Member
 
Join Date: Jan 2012
Posts: 1
hoacomay is on a distinguished road
Default

i use tableview for iphone and android,thanks you!
hoacomay is offline   Reply With Quote
Old 02-06-2012, 09:26 PM   #4 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 1
ROSSiDEAS is on a distinguished road
Default small bug found

First thanks for the code.. nice ... thought I'd mention...I was experimenting and noticed I was stuck at the login (dropbox setting) since a the keyboard that popped did not have a "Done" option on it... thanks again.



Quote:
Originally Posted by hiaw View Post
Hi,

I'm sharing my code for custom menu/setting table view. I thought this is a very nice solution to the problem I had.

So I had a menu/setting page which the content will change depending on what the user's doing to it and which in app purchase they had purchased.

I was doing it the old fashion way of returning exactly the right cell for the table view and end up with many many if, else and switch statements.

I decided my code was functional but will be a horror to maintain in the future. So I refactor the code by maintaining an NSArray for the cells and related section and header, footer etc. And the resultant code is what I'm sharing in Github. I found the solution works elegantly to my problem and my code is more maintainable in the future now.

Cheers

Get the code here

View the post here
ROSSiDEAS 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 474
14 members and 460 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, Pauluz85, pipposanta, QuantumDoja, robsmy, sacha1996, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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