Settings/Preferences : a Picture Essay

| | Comments (3) | TrackBacks (0)
Here is the settings menu from Garf.  Each row has a height of 48.0.  There are 3 groups and a total of 8 rows.  Groups 0 and 1 each have two rows, while Group 2 has one row.


GarfSettingsA.JPG







The arrow head (pointy-bracket) is achieved by calling "setShowDisclosure:YES" on the preference cell.

Most of the cells are of the type:
UIPreferencesTableCell






The "High scores" cell is of the following type: UIPreferencesControlTableCell.

The switch inside of it is of the type:
UISwitchControl






GarfSettingsB.jpg

0 TrackBacks

Listed below are links to blogs that reference this entry: Settings/Preferences : a Picture Essay.

TrackBack URL for this entry: http://mauvilasoftware.com/cgi-bin/mt/mt-tb.cgi/10

3 Comments

Aaron said:

This is great documentation. Any hints on the purpose of the "cellForGroup" datasource method? As in the following:

- (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForGroup:(int)group

doing an alloc or returning nil doesn't make a difference.

Aaron said:

Got it figured out by reading the new Open iPhone Application book. Looks like purpose of cellForGroup is to tag a cell as a group label. Since group's don't require them and it seems as if your Garf app assigns the label directly, there are ways around it.

JLA said:

In this case, I return a 'nil' for cellForGroup, and return the name of the group in titleForGroup. It's worked well for me so far.

Leave a comment

About this Entry

This page contains a single entry by JLA published on January 27, 2008 2:21 AM.

Source Code and Packages was the previous entry in this blog.

iPhone memory management - a brief introduction is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories

Pages

Powered by Movable Type 4.1-en-release-26-r1120-20071224