Nimbus
0.9.3 - Nimbus is proudly hosted on Github
An iOS framework whose growth is bounded by O(documentation).
|
This is a catalog of Nimbus' pre-built cells and objects for use in UITableViews.
All of these cells are designed primarily to be used with the Nimbus cell factory, though it is entirely possible to use the cells in a vanilla UIKit application as well.
Building forms with Nimbus is incredibly easy thanks to the pre-built form elements. The available form elements are listed below.
Form elements require an element ID that can be used to differentiate between the form elements, much like in HTML. If you are using the table cell factory then the element ID will be assigned to the cell's view tag and the control tags as well. Let's say you want to add a text input element that is disabled under certain conditions. Your code would look something like the following:
// In your model, create an element with the delegate provided. [NITextInputFormElement elementWithID:kUsernameField placeholderText:@"Username" value:nil delegate:self], // And then implement the UITextFieldDelegate - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { if (textField.tag == kUsernameField) { return NO; } return YES; }
Example use in a NITableViewModel:
// Create a text input field. [NITextInputFormElement textInputElementWithID:kUsernameField placeholderText:@"Username" value:nil], // Create a password input field [NITextInputFormElement passwordInputElementWithID:kPasswordField placeholderText:@"Password" value:nil],
Example use in a NITableViewModel:
[NISwitchFormElement switchElementWithID:kPushNotifications labelText:@"Push Notifications" value:NO],
Classes | |
class | NITitleCellObject |
An object for displaying a single-line title in a table view cell. More... | |
class | NISubtitleCellObject |
An object for displaying two lines of text in a table view cell. More... | |
class | NITextCell |
A general-purpose cell for displaying text. More... | |
class | NIFormElement |
A single element of a form with an ID property. More... | |
class | NITextInputFormElement |
A text input form element. More... | |
class | NISwitchFormElement |
A switch form element. More... | |
class | NIFormElementCell |
The base class for form element cells. More... | |
class | NITextInputFormElementCell |
The cell sibling to NITextInputFormElement. More... | |
class | NISwitchFormElementCell |
The cell sibling to NISwitchFormElement. More... |