Re: Iphone Grouped Table View for Settings
Re: Iphone Grouped Table View for Settings
- Subject: Re: Iphone Grouped Table View for Settings
- From: Alex Kac <email@hidden>
- Date: Fri, 17 Jul 2009 00:18:35 -0500
Also - on iPhone OS 3.0 this is even simpler. You don't need custom
table cells.
UITableViewCell *cell = [tableView
dequeueReusableCellWithIdentifier:CellDetailIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleValue1
reuseIdentifier:CellDetailIdentifier] autorelease];
}
This sets up a Settings style cell with a regular label on the left
and a detail label on the right.
On Jul 17, 2009, at 12:10 AM, Luke Hiesterman wrote:
Look at the table view programming guide for how to build custom
table cells. Just think of each cell as a custom view. They can even
be built in IB easily enough. Drag UITableViewCell objects into your
nib and lay them out however you like.
Luke
Sent from my iPhone.
On Jul 16, 2009, at 9:34 PM, Trygve Inda <email@hidden>
wrote:
I don't want to use the Settings app as I need a clean way for the
user to
get to the settings from within my app and then return to my app.
So I need
to build a grouped table view, with each cell containing a single
control
(and a label) like the settings app does.
For example, I need a table with two rows, each row needs a label,
slider
and text (numeric value of slider).
How can I do this? There seems to be no way to build it in IB
directly. I
need a way to make the two sliders IBOutlets so that I can
manipulate them.
As my cells will be static (just the label, slider, text), it seems
simple,
but I have found no examples of this.
I also need another group - same as above but with switches.
Thanks for any leads to examples or the best way to achieve this.
Trygve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Alex Kac - President and Founder
Web Information Solutions, Inc.
"If at first you don't succeed, skydiving is not for you."
-- Francis Roberts
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden