Skip to content

ablettchen/ATLoadView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATLoadView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

#import <ATLoadView/ATLoadView.h>
  • Load - Default
ATLoadView *view = [ATLoadView viewWithText:@"LOADING..."];
[view showIn:self.view];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
    [view hide];
});
  • Load - Light
ATLoadView *view = [ATLoadView viewWithLightStyle];
[view showIn:self.view];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
    [view hide];
});
  • Load - Dark
ATLoadView *view = [ATLoadView viewWithDarkStyle];
[view 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 viewWithGifImage:[YYImage imageNamed:@"popup_load_balls.gif"]];
[view 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, ablett.chen@gmail.com

License

ATLoadView is available under the MIT license. See the LICENSE file for more info.

About

Loading View

Resources

License

Stars

Watchers

Forks

Packages

No packages published