Iphone Grouped Table View for Settings

2009-07-16 Thread Trygve Inda
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 wit

Re: Iphone Grouped Table View for Settings

2009-07-16 Thread Brian Slick
I haven't played with sliders, but here is an example for a switch: UITableViewCell *yourCell = [tableView dequeueReusableCellWithIdentifier:YourCellIdentifier]; if (yourCell == nil) { yourCell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:YourCel

Re: Iphone Grouped Table View for Settings

2009-07-16 Thread Luke Hiesterman
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

Re: Iphone Grouped Table View for Settings

2009-07-16 Thread Alex Kac
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:CellD

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Trygve Inda
> 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. So I want a

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Brian Slick
On Jul 17, 2009, at 9:39 AM, Trygve Inda 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. Lu

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Luke Hiesterman
Create a view based xib. In the generic view provided add all your custom views including a UITableView. Don't drag a UITableViewController - just the UITableView itself. Then be sure to set the table views data source and delegate outlets to one or two of your objects that will handle thos

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Trygve Inda
> > On Jul 17, 2009, at 9:39 AM, Trygve Inda 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

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Luke the Hiesterman
On Jul 17, 2009, at 7:15 AM, Trygve Inda wrote: Can I just drag a connection from the UIViewController in one nib to the view object in another nib No. You cannot make connection between nibs. I recommend reading up on using Interface Builder and nibs to get a better understanding o

Re: Iphone Grouped Table View for Settings

2009-07-17 Thread Trygve Inda
> > On Jul 17, 2009, at 7:15 AM, Trygve Inda wrote: > >> Can I just drag a connection from the UIViewController in one nib >> to the >> view object in another nib > > No. You cannot make connection between nibs. I recommend reading up on > using Interface Builder and nibs to get a better u