|
|
|
|
42
|
-(UIButton *)addCardAlertBtn{
|
42
|
-(UIButton *)addCardAlertBtn{
|
43
|
if (!_addCardAlertBtn) {
|
43
|
if (!_addCardAlertBtn) {
|
44
|
_addCardAlertBtn=[[UIButton alloc]init];
|
44
|
_addCardAlertBtn=[[UIButton alloc]init];
|
|
|
45
|
+ _addCardAlertBtn.layer.cornerRadius=10;
|
45
|
[_addCardAlertBtn setTitle:@"+添加还款提醒" forState:UIControlStateNormal];
|
46
|
[_addCardAlertBtn setTitle:@"+添加还款提醒" forState:UIControlStateNormal];
|
46
|
CAGradientLayer *gradientLayer = [CAGradientLayer layer];
|
47
|
CAGradientLayer *gradientLayer = [CAGradientLayer layer];
|
47
|
- gradientLayer.frame = CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height-64);
|
|
|
48
|
- gradientLayer.colors = @[(id)[UIColor redColor].CGColor,(id)[UIColor greenColor].CGColor,(id)[UIColor blueColor].CGColor];
|
|
|
|
|
48
|
+ gradientLayer.frame = CGRectMake(0, 0, SCREEN_WIDTH-2*FITSIZE(14), 50);
|
|
|
49
|
+ gradientLayer.colors = @[(id)[UIColor CHColorWithHex:0xD7B6FC].CGColor,(id)[UIColor CHColorWithHex:0x8E80F9].CGColor];
|
49
|
gradientLayer.startPoint = CGPointMake(0, 0);
|
50
|
gradientLayer.startPoint = CGPointMake(0, 0);
|
50
|
- gradientLayer.endPoint = CGPointMake(1, 0);
|
|
|
|
|
51
|
+ gradientLayer.endPoint = CGPointMake(0, 1);
|
51
|
[_addCardAlertBtn.layer addSublayer:gradientLayer];
|
52
|
[_addCardAlertBtn.layer addSublayer:gradientLayer];
|
52
|
}
|
53
|
}
|
53
|
return _addCardAlertBtn;
|
54
|
return _addCardAlertBtn;
|