-
Icons for your iPhone settings
Posted on November 2nd, 2009 1 commentbjango.com has an interesting article about how and why many developers are moving their settings into the app itself. They even have some icons you can use, both for the tab bar and the toolbar.
-
Added mySettings to GitHub
Posted on June 26th, 2009 No commentsI finally added mySettings to GitHub, using the marvel that is hg-git. It allows me to continue using mercurial, and to push and pull from git repositories. The project on GitHub can be found here. The main place for mySettings will still be on BitBucket, I’m just uploading the code to GitHub to see if it will attract more users and contributors.
-
Customising a table view with mySettings
Posted on May 21st, 2009 6 commentsI’ve been working on my iPhone app lately (for performing physical exercises like the ones you get from a physiotherapist, but more about that later) so I haven’t written anything for a long time. I thought I’d rectify that by showing how to create highly customised UIs with fairly little coding. I recently added support for delegates to mySettings and that opened up a lot of possibilities, even with only one method in the delegate (for now).
As an example, here’s the configuration screen for my app:
-
Another way to create Settings views
Posted on May 4th, 2009 No commentsCraig Hockenberry has also created an API for Settings views. But unlike mySettings his API creates the views from code instead of plists. Like this:
-
- (void)constructTableGroups
-
{
-
IFTextCellController *textCell = [[[IFTextCellController alloc] initWithLabel:@"Text" andPlaceholder:@"Placeholder" atKey:@"sampleText" inModel:model] autorelease];
-
[cells addObject:textCell];
-
IFSwitchCellController *switchCell = [[[IFSwitchCellController alloc] initWithLabel:@"Switch" atKey:@”sampleSwitch” inModel:model] autorelease];
-
[cells addObject:switchCell];
-
}
Check it out at http://furbo.org/2009/04/30/matt-gallagher-deserves-a-medal/ .
-
-
A UIPickerView with labels
Posted on March 29th, 2009 13 commentsI recently needed a picker view with labels (like the one in the timer tab in the Clock app) to select minutes and seconds for a time interval. So I made the following subclass of UIPickerView:
-
#import
-
-
/**
-
A picker view with labels under the selection indicator.
-
Similar to the one in the timer tab in the Clock app.
-
NB: has only been tested with less than four wheels.
-
*/
-
@interface LabeledPickerView : UIPickerView {
-
NSMutableDictionary *labels;
-
}
-
-
/** Adds the label for the given component. */
-
-
@end
-



Recent Comments