Latest | 0.1.1 |
---|---|
Homepage | https://github.com/ablettchen/ATLoadView |
License | MIT |
Platforms | ios 8.0, requires ARC |
Dependencies | ATPopupView, ATLoadingView, YYImage |
Frameworks | UIKit, Foundation |
Authors |
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
#import <ATLoadView/ATLoadView.h>
- Load – Light
ATLoadView *view = ATLoadView.build.showIn(self.view); // default style is Light
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[view hide];
});
- Load – Dark
ATLoadView *view = ATLoadView.build.withStyle(ATLoadStyleDark).showIn(self.view);
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[view hide];
});
- Load – Gif image
//ATLoadView *view = ATLoadView.build.withStyle(ATLoadStyleGifImage).showIn(self.view); // default gif image
ATLoadView *view = ATLoadView.build.withGifImage([YYImage imageNamed:@"popup_load_balls.gif"]).showIn(self.view);
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[view hide];
});
Requirements
Installation
ATLoadView is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'ATLoadView'
Author
ablett, [email protected]
License
ATLoadView is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "ATLoadView", "version": "0.1.1", "summary": "Loading View", "homepage": "https://github.com/ablettchen/ATLoadView", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "ablett": "[email protected]" }, "source": { "git": "https://github.com/ablettchen/ATLoadView.git", "tag": "0.1.1" }, "social_media_url": "https://twitter.com/ablettchen", "platforms": { "ios": "8.0" }, "source_files": "ATLoadView/**/*.{h,m}", "resources": "ATLoadView/ATLoadView.bundle", "requires_arc": true, "frameworks": [ "UIKit", "Foundation" ], "dependencies": { "ATPopupView": [], "ATLoadingView": [], "YYImage": [] } }
Mon, 27 May 2019 10:10:05 +0000