Latest | 0.3.1 |
---|---|
Homepage | https://github.com/mohsenShakiba/DataDrivenTableView |
License | MIT |
Platforms | ios 8.0 |
Authors |
Data driven table view makes it easy to work with dynamic data in table view
Usage
Properties
Then subclass a DDSection and override the following methods
isRefreshControlEnabled: Bool
returntrue
if you need pull to refreshisInfiniteScrollEnabled: Bool
returntrue
if you need infinite scroll
Interaction with datasource
update(insert newItems: [T], at: Int, animation: UITableViewRowAnimation? = nil)
update(append newItems: [T], animation: UITableViewRowAnimation? = nil)
update(reload item: T, animation: UITableViewRowAnimation? = nil)
update(delete item: T, animation: UITableViewRowAnimation? = nil)
clear()
update(failed error: Error)
Cells
–cellForRow(at index: Int) -> UITableViewCell
–heightForRow(at index: Int) -> CGFloat
–requestForMoreItems()
InfiniteScroll
–infiniteScrollView() -> UIView
RefreshControl
–didRefresh()
DDTableViewController
override following properties
–showError()
–showLoading()
–showEmptyView()
Author
mohsenShakiba, [email protected]
License
DataDrivenTableView is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "DataDrivenTableView", "version": "0.3.1", "summary": "Data driven UITableView with a few extra abilities", "description": "Data driven UITableView with a few extra abilities, perfect for MVVM design", "homepage": "https://github.com/mohsenShakiba/DataDrivenTableView", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "mohsenShakiba": "[email protected]" }, "source": { "git": "https://github.com/mohsenShakiba/DataDrivenTableView.git", "tag": "0.3.1" }, "platforms": { "ios": "8.0" }, "source_files": "DataDrivenTableView/Classes/**/*", "pushed_with_swift_version": "3.0" }
Fri, 01 Dec 2017 16:20:04 +0000