Create AppIconTableViewCell.m
This commit is contained in:
parent
57b1ac17a9
commit
43a9491dce
1 changed files with 37 additions and 0 deletions
37
Sources/AppIconTableViewCell.m
Normal file
37
Sources/AppIconTableViewCell.m
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#import "AppIconTableViewCell.h"
|
||||
|
||||
@implementation AppIconTableViewCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
[self setupUI];
|
||||
[self setUpAnimation];
|
||||
}
|
||||
|
||||
- (void)setupUI {
|
||||
self.contentView.backgroundColor = [UIColor colorWithRed:240.0/255.0 green:240.0/255.0 blue:240.0/255.0 alpha:1.0];
|
||||
|
||||
self.bgCardView.backgroundColor = [UIColor whiteColor];
|
||||
self.bgCardView.layer.cornerRadius = 8.0;
|
||||
self.bgCardView.layer.masksToBounds = YES;
|
||||
self.bgCardView.layer.shadowColor = [UIColor blackColor].CGColor;
|
||||
self.bgCardView.layer.shadowOffset = CGSizeZero;
|
||||
self.bgCardView.layer.shadowOpacity = 1.0;
|
||||
}
|
||||
|
||||
- (void)setUpAnimation {
|
||||
self.animationView.contentMode = UIViewContentModeScaleAspectFit;
|
||||
self.animationView.backgroundColor = [UIColor clearColor];
|
||||
}
|
||||
|
||||
- (void)playAnimation {
|
||||
self.animationView.hidden = NO;
|
||||
self.animationView.animation = [Animation named:@"tick"];
|
||||
self.animationView.loopMode = LOTAnimationLoopModePlayOnce;
|
||||
|
||||
[self.animationView playWithCompletion:^(BOOL finished) {
|
||||
self.animationView.hidden = YES;
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
Loading…
Reference in a new issue