PresentView.h
1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// PresentView.h
// presentAnimation
//
// Created by 许博 on 16/7/14.
// Copyright © 2016年 许博. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShakeLabel.h"
#import "GiftModel.h"
typedef void(^completeBlock)(BOOL finished,NSInteger finishCount,NSInteger finishGiftCount);
@interface PresentView : UIView
@property (nonatomic,strong) GiftModel *model;
@property (nonatomic,strong) UIImageView *headImageView; // 头像
@property (nonatomic,strong) UIImageView *giftImageView; // 礼物
@property (nonatomic,strong) UILabel *nameLabel; // 送礼物者
@property (nonatomic,strong) UILabel *giftLabel; // 礼物名称
@property (nonatomic,assign) NSInteger giftCount; // 礼物个数
@property (nonatomic,assign) NSInteger finishGiftCount; // 礼物id
@property (nonatomic,strong) ShakeLabel *skLabel;
@property (nonatomic,assign) NSInteger animCount; // 动画执行到了第几次
@property (nonatomic,assign) CGRect originFrame; // 记录原始坐标
@property (nonatomic,assign,getter=isFinished) BOOL finished;
- (void)animateWithCompleteBlock:(completeBlock)completed;
- (void)shakeNumberLabel;
- (void)hidePresendView;
@end