NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
A launcher view model that complies to the NILauncherDataSource protocol.
This model object allows you to keep all of your launcher view data together in one object. It also conforms to the NSCoding protocol, allowing you to read and write your model to disk so that you can store the state of your launcher.
Tasks | |
Creating Launcher View Models | |
(id) | - initWithArrayOfPages:delegate: |
Accessing Objects | |
(void) | - appendPage: |
(void) | - appendObject:toPage: |
(id< NILauncherViewObject >) | - objectAtIndex:pageIndex: |
Configuring a Launcher View | |
(NSInteger) | - launcherView:numberOfButtonsInPage: |
(UIView< NILauncherButtonView > *) | - launcherView:buttonViewForPage:atIndex: |
(NSInteger) | - numberOfPagesInLauncherView: |
(NSInteger) | - numberOfRowsPerPageInLauncherView: |
(NSInteger) | - numberOfColumnsPerPageInLauncherView: |
Initializes a newly allocated launcher view model with an array of pages and a given delegate.
This is the designated initializer.
pages | An array of arrays of objects that conform to the NILauncherViewObject protocol. |
delegate | An object that conforms to the NILauncherViewModelDelegate protocol. |
Appends a page of launcher view objects.
page | An array of launcher view objects to add. |
Appends a launcher view object to a given page.
object | The object to add to the page. |
pageIndex | The index of the page to add this object to. |
Returns the object at the given index in the page at the given page index.
Throws an assertion if the object index or page index are out of bounds.
index | The index within the page of the object to return. |
pageIndex | The index of the page to retrieve the object from. |
Tells the receiver to return the number of rows in a given section of a table view (required).
launcherView | The launcher-view object requesting this information. |
page | The index locating a page in launcherView . |
page
. Tells the receiver to return a button view for inserting into a particular location of a given page in the launcher view (required).
launcherView | The launcher-view object requesting this information. |
page | The index locating a page in launcherView . |
index | The index locating a button in a page. |
Asks the receiver to return the number of pages in the launcher view.
It is assumed that the launcher view has one page if this method is not implemented.
launcherView | The launcher-view object requesting this information. |
launcherView
. The default value is 1. Asks the receiver to return the number of rows of buttons each page can display in the launcher view.
This method will be called each time the frame of the launcher view changes. Notably, this will be called when the launcher view has been rotated as a result of a device rotation.
launcherView | The launcher-view object requesting this information. |
Asks the receiver to return the number of columns of buttons each page can display in the launcher view.
This method will be called each time the frame of the launcher view changes. Notably, this will be called when the launcher view has been rotated as a result of a device rotation.
launcherView | The launcher-view object requesting this information. |