Houdah iPhone Properties
March 26, 2009 12:43 AM
| Cocoa-Touch, Development, Houdah, iPhone
| Permalink
I just open-sourced a couple of classes to simplify working with UITableViewControllers to create property editing interfaces.
The controllers and views of this project may be used to easily create interfaces much like Apple's Settings applications. They make up most of the UI of the free LocrUpload application.
The PropertiesViewController may be used to modify attributes of any key-value-coding compliant container. Typically a container would be a NSMutableDictionary or a NSUserDefaults instance.
The controller is typically configured in a subclass by providing a set of descriptors. Descriptors are immutable objects describe the properties to expose and the UI elements (text field, switch, ...) to use. Seeing that descriptors are immutable, it should be easy to store them in a file rather than building them in code.
The SelectionViewController is used by the PropertiesViewController for multiple choice values.
The controllers and views of this project may be used to easily create interfaces much like Apple's Settings applications. They make up most of the UI of the free LocrUpload application.
The PropertiesViewController may be used to modify attributes of any key-value-coding compliant container. Typically a container would be a NSMutableDictionary or a NSUserDefaults instance.
The controller is typically configured in a subclass by providing a set of descriptors. Descriptors are immutable objects describe the properties to expose and the UI elements (text field, switch, ...) to use. Seeing that descriptors are immutable, it should be easy to store them in a file rather than building them in code.
The SelectionViewController is used by the PropertiesViewController for multiple choice values.
Comments