应用内更新可以了
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.backgroundColor = [UIColor colorWithWhite:0 alpha:0.6];
|
||||
[self addSubview:self.bgImageView];
|
||||
|
||||
[self.bgImageView addSubview:self.textView];
|
||||
@@ -45,10 +44,12 @@
|
||||
[self.stackView addArrangedSubview:self.updateBtn];
|
||||
}
|
||||
- (void)initSubViewConstraints {
|
||||
[self mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(250, 311));
|
||||
}];
|
||||
|
||||
[self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.center.equalTo(self);
|
||||
make.width.mas_equalTo(250);
|
||||
make.height.mas_greaterThanOrEqualTo(311);
|
||||
make.edges.equalTo(self);
|
||||
}];
|
||||
|
||||
[self.stackView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
@@ -130,7 +131,7 @@
|
||||
if (!_updateBtn){
|
||||
UIImage *image = [UIImage gradientColorImageFromColors:@[[ThemeColor confirmButtonGradientStartColor],[ThemeColor confirmButtonGradientEndColor]] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(10, 10)];
|
||||
_updateBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_updateBtn setTitle:@"记录更新" forState:UIControlStateNormal];
|
||||
[_updateBtn setTitle:@"立即更新" forState:UIControlStateNormal];
|
||||
_updateBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
_updateBtn.titleLabel.textColor = [ThemeColor confirmButtonTextColor];
|
||||
[_updateBtn setBackgroundImage:image forState:UIControlStateNormal];
|
||||
@@ -146,7 +147,7 @@
|
||||
UIImage *image = [UIImage gradientColorImageFromColors:@[[ThemeColor cancelButtonGradientStartColor],[ThemeColor cancelButtonGradientEndColor]] gradientType:GradientTypeLeftToRight imgSize:CGSizeMake(10, 10)];
|
||||
[_cancelBtn setTitle:@"下次再说" forState:UIControlStateNormal];
|
||||
_cancelBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
_cancelBtn.titleLabel.textColor = [ThemeColor cancelButtonTextColor];
|
||||
[_cancelBtn setTitleColor:[ThemeColor cancelButtonTextColor] forState:UIControlStateNormal];
|
||||
[_cancelBtn setBackgroundImage:image forState:UIControlStateNormal];
|
||||
_cancelBtn.layer.cornerRadius = 32 / 2;
|
||||
_cancelBtn.layer.masksToBounds = YES;
|
||||
|
Reference in New Issue
Block a user