KZ

A base framework for iOS projects
Install with CocoaPods
pod 'KZ', '~> 1.3'
Classes Notes
KZViewController
- A base for your controllers
- Set any constraints in
updateViewConstraints - Override
fetchDatato handle any network requests (Note: this is called automatically and on 15 second intervals) - UITableViewDelegate & UITableViewDataSource
- Override
tableViewCellClassto change the class of a cell - Override
tableViewCellDatato return the array of data to use for a section - Override
tableViewNoDataTextto change the text displayed when there is no data - This class already handles setting the height & content of cells
- Override
KZTableViewController
- Inherits from
KZViewController - Can optionally create a table
- Has an array of
Anyinitialized beforehand: self.items - The
tableViewis created by default and set to fill the whole view
KZTableViewCell
- Override
init(style:reuseIdentifier:)to add any buttons, images, labels, etc... - Override
setupConstraintsto handle laying out the cell's contents with autolayout - Override
fillInCellDatato handle the data for the cell. Themodelproperty can be cast to the class you are expecting
KZScrollViewController
- Inherits from
KZViewController - Has a
contentViewembeded in ascrollViewthat fills the sceen - Add any content in
viewDidLoadto thecontentView - Override
setupConstraintsto layout the viewinside the scroll view
KZIntrinsicTableView
- A tableView whose height is the height of it's content
KZIntrinsicCollectionView
- A collectionView whose height is the height of it's content
License
This library is available under the MIT license. See the LICENSE file for more info.
Author
Kesi Maduka
http://kez.io
[email protected]