|
@@ -42,12 +42,13 @@
|
42
|
42
|
-(UIButton *)addCardAlertBtn{
|
43
|
43
|
if (!_addCardAlertBtn) {
|
44
|
44
|
_addCardAlertBtn=[[UIButton alloc]init];
|
|
45
|
+ _addCardAlertBtn.layer.cornerRadius=10;
|
45
|
46
|
[_addCardAlertBtn setTitle:@"+添加还款提醒" forState:UIControlStateNormal];
|
46
|
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
|
50
|
gradientLayer.startPoint = CGPointMake(0, 0);
|
50
|
|
- gradientLayer.endPoint = CGPointMake(1, 0);
|
|
51
|
+ gradientLayer.endPoint = CGPointMake(0, 1);
|
51
|
52
|
[_addCardAlertBtn.layer addSublayer:gradientLayer];
|
52
|
53
|
}
|
53
|
54
|
return _addCardAlertBtn;
|