Latest | 1.0.1 |
---|---|
Homepage | https://github.com/Inferis/IIAsyncViewController |
License | MIT |
Platforms | ios 7, requires ARC |
Authors |
A UIViewController subclass specifically geared toward async data fetching.
Description
IIAsyncViewController
is a subclass of viewcontrollers that’s engineered to provide handle asynchronous data. It wraps its view in a state view which will:
- display a loading spinner while data is being requested,
- the original view itself when data was correctly loaded,
- a "no data" message when the request succeeded but no data was retrieved,
- and finally an error message when an error occurred
It is created so to be flexible: you can use the default components, but the controller allows you to provide your own views for maximum flexibility at a cost of a little bit more work.
Documentation
Forthcoming. I’ve written this on the plane from SF to Europe, and now I’m tired.
Classes and protocols are documented enough to get you started, I think.
Tests
They aren’t there. Will be, but not now. Too tired, my friend.
Cocoapods
IIAsyncViewController is available as a CocoaPod. Add the following line to your Podfile:
pod 'IIAsyncViewController'
And you’re done.
License
IIAsyncViewController is published under the MIT License.
See LICENSE for the full license.
Latest podspec
{ "name": "IIAsyncViewController", "platforms": { "ios": 7 }, "version": "1.0.1", "summary": "A UIViewController subclass specifically geared toward async data fetching.", "homepage": "https://github.com/Inferis/IIAsyncViewController", "license": { "type": "MIT", "file": "LICENSE" }, "social_media_url": "https://twitter.com/inferis", "authors": { "Tom Adriaenssen": "http://inferis.org/" }, "source": { "git": "https://github.com/Inferis/IIAsyncViewController.git", "tag": "1.0.1" }, "source_files": "IIAsyncViewController/**/*.{h,m}", "private_header_files": "IIAsyncViewController/Private/*.h", "requires_arc": true }
Sun, 06 Mar 2016 15:42:04 +0000