//
//  HXPublicHUD.m
//  HXOnlineSchool
//
//  Created by 卢悦明 on 2017/3/17.
//  Copyright © 2017年 卢悦明. All rights reserved.
//

#import "GMPublicHUDLogo.h"

@implementation GMPublicHUDLogo
- (instancetype)init
{
    self = [super init];
    if (self) {
        NSMutableArray *array = [NSMutableArray array];
        for (int i = 0; i< 25;i++ ) {
            [array addObject:[UIImage imageNamed:[NSString stringWithFormat:@"GMloading_%d.png", i]]];
        }
        self.animationImages = [[NSArray alloc] initWithArray:array];
        
        // all frames will execute in 1.75 seconds
        self.animationDuration = 1.2;
        // repeat the annimation forever
        self.animationRepeatCount = 0;
        // start animating
        [self startAnimating];
    }
    return self;
}

- (void)cleanPackView
{
    [self stopAnimating];
    [self removeFromSuperview];
}
@end
