fix
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
|
||||
self = [super initWithFrame:frame];
|
||||
if (self) {
|
||||
self.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.8];
|
||||
self.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:0.2];
|
||||
|
||||
[self setUpUI];
|
||||
}
|
||||
@@ -24,26 +24,17 @@
|
||||
|
||||
-(void)setUpUI{
|
||||
|
||||
UIImageView *iconImg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@""]];
|
||||
iconImg.backgroundColor = [UIColor redColor];
|
||||
[self addSubview:iconImg];
|
||||
[iconImg mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.and.height.mas_equalTo(40);
|
||||
make.left.mas_equalTo(10);
|
||||
make.centerY.mas_equalTo(self.mas_centerY);
|
||||
|
||||
}];
|
||||
|
||||
UILabel *waringLabel = [[UILabel alloc] init];
|
||||
waringLabel.text = @"亲爱滴,请您务必要开启手机声音哦";
|
||||
waringLabel.text = @"♥️ 亲,请您务必要开启手机声音哦~";
|
||||
waringLabel.textColor = [UIColor whiteColor];
|
||||
waringLabel.textAlignment = NSTextAlignmentCenter;
|
||||
waringLabel.font = [UIFont systemFontOfSize:12];
|
||||
waringLabel.font = GIGA_TEXTFONTMEDIUM(14);
|
||||
|
||||
[self addSubview:waringLabel];
|
||||
[waringLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
|
||||
make.left.mas_equalTo(self.mas_left).offset(40);
|
||||
make.left.mas_equalTo(self.mas_left).offset(10);
|
||||
make.right.mas_equalTo(self.mas_right).offset(-40);
|
||||
make.centerY.mas_equalTo(self.mas_centerY);
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user