@@ -28,33 +28,35 @@ - (instancetype)initWithBgImage:(UIImage *)bgImage logoIcon:(UIImage *)logoIcon
2828 // add custom code
2929 self.backgroundColor = [UIColor blackColor ];
3030 UIColor *blackColor = [UIColor blackColor ];
31- [self addGradientLayerWithColors: @[(id )[blackColor colorWithAlphaComponent: 0.0 ].CGColor, (id )[blackColor colorWithAlphaComponent: 0.7 ].CGColor] locations: nil startPoint: CGPointMake (0.5 , 0.6 ) endPoint: CGPointMake (0.5 , 1.0 )];
3231
3332 _bgImageView = [[UIImageView alloc ] initWithFrame: kScreen_Bounds ];
3433 _bgImageView.contentMode = UIViewContentModeScaleAspectFill;
3534 _bgImageView.alpha = 0.0 ;
3635 [self addSubview: _bgImageView];
36+
37+ [self addGradientLayerWithColors: @[(id )[blackColor colorWithAlphaComponent: 0.0 ].CGColor, (id )[blackColor colorWithAlphaComponent: 0.9 ].CGColor] locations: nil startPoint: CGPointMake (0.5 , 0.6 ) endPoint: CGPointMake (0.5 , 1.0 )];
38+
3739 _logoIconView = [[UIImageView alloc ] init ];
3840 _logoIconView.contentMode = UIViewContentModeScaleAspectFit;
3941 _logoIconView.alpha = 1.0 ;
4042 [self addSubview: _logoIconView];
4143 _descriptionStrLabel = [[UILabel alloc ] init ];
42- _descriptionStrLabel.font = [UIFont systemFontOfSize: 14 ];
43- _descriptionStrLabel.textColor = [UIColor colorWithWhite: 1.0 alpha: 0.85 ];
44+ _descriptionStrLabel.font = [UIFont systemFontOfSize: 10 ];
45+ _descriptionStrLabel.textColor = [UIColor colorWithWhite: 1.0 alpha: 0.5 ];
4446 _descriptionStrLabel.textAlignment = NSTextAlignmentCenter;
4547 _descriptionStrLabel.alpha = 0.0 ;
4648 [self addSubview: _descriptionStrLabel];
4749
4850 [_descriptionStrLabel mas_makeConstraints: ^(MASConstraintMaker *make) {
4951 make.centerX .equalTo (@[self , _logoIconView]);
50- make.height .mas_equalTo (20 );
51- make.bottom .equalTo (self.mas_bottom ).offset (-30 );
52+ make.height .mas_equalTo (10 );
53+ make.bottom .equalTo (self.mas_bottom ).offset (-15 );
5254 make.left .equalTo (self.mas_left ).offset (20 );
5355 make.right .equalTo (self.mas_right ).offset (-20 );
5456 }];
5557
5658 [_logoIconView mas_makeConstraints: ^(MASConstraintMaker *make) {
57- make.bottom .equalTo (_descriptionStrLabel.mas_top ).offset (-40 );
59+ make.bottom .equalTo (_descriptionStrLabel.mas_top ).offset (-25 );
5860 make.size .mas_lessThanOrEqualTo (CGSizeMake (255 , 60 ));
5961 make.left .equalTo (self.mas_left ).offset (60 );
6062 make.right .equalTo (self.mas_right ).offset (-60 );
0 commit comments