-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathBCHomeCurrentTodayTaskView.m
More file actions
43 lines (38 loc) · 1.06 KB
/
BCHomeCurrentTodayTaskView.m
File metadata and controls
43 lines (38 loc) · 1.06 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
38
39
40
41
42
43
//
// BCHomeCurrentTodayTaskView.m
// LYCCarProgressAnimation
//
// Created by liuyanchi on 2017/6/22.
// Copyright © 2017年 com.liuyanchi.www. All rights reserved.
//
#import "BCHomeCurrentTodayTaskView.h"
#import "LYCBaseAnimationView.h"
@implementation BCHomeCurrentTodayTaskView
- (instancetype)init
{
self = [super init];
if (self) {
[self creatUI];
}
return self;
}
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self creatUI];
}
return self;
}
- (void)creatUI
{
LYCBaseAnimationView *aniView = [[LYCBaseAnimationView alloc] initWithFrame:CGRectMake(15,150, 162, 210) withType:AnimationPerform];
aniView.percentStr = @"0";
aniView.titleStr = @"时长";
[self addSubview:aniView];
LYCBaseAnimationView *circleAniView = [[LYCBaseAnimationView alloc] initWithFrame:CGRectMake(200,150, 162, 210) withType:AnimationPerform];
circleAniView.titleStr = @"高峰时长";
circleAniView.percentStr = @"100";
[self addSubview:circleAniView];
}
@end