| | |
| | | make.leading.mas_equalTo(@10); |
| | | make.trailing.mas_equalTo(@-10); |
| | | if([UIScreen mainScreen].bounds.size.height == 480.0){ |
| | | make.top.mas_equalTo(@10); |
| | | make.top.mas_equalTo(10+50); |
| | | }else{ |
| | | make.top.mas_equalTo(@99); |
| | | make.top.mas_equalTo(99+50); |
| | | } |
| | | make.height.mas_equalTo(@50); |
| | | }]; |
| | |
| | | [self.view addSubview:self.deviceImageView]; |
| | | [self.deviceImageView mas_makeConstraints:^(MASConstraintMaker *make) { |
| | | make.top.mas_equalTo(self.tipsLabel.mas_bottom).offset(19); |
| | | make.width.mas_equalTo(@174); |
| | | make.height.mas_equalTo(@199); |
| | | // make.width.mas_equalTo(@174); |
| | | // make.height.mas_equalTo(@199); |
| | | make.width.height.mas_equalTo(0); |
| | | make.centerX.mas_equalTo(self.view.mas_centerX); |
| | | }]; |
| | | |
| | |
| | | }]; |
| | | |
| | | [self checkDevice]; |
| | | |
| | | self.deviceImageView.hidden=YES; |
| | | } |
| | | |
| | | - (void)didReceiveMemoryWarning { |
| | |
| | | [self.exceptionButton setTitle:NSLocalizedString(@"wifi_config_wifi_ago", @"这台设备以前配过网络") forState:UIControlStateNormal]; |
| | | |
| | | NSMutableAttributedString *attributeStr = [[NSMutableAttributedString alloc] initWithString:self.tipsLabel.text]; |
| | | [attributeStr addAttributes:@{NSForegroundColorAttributeName:[UIColor dd_hexStringToColor:@"0xff4000"],NSFontAttributeName:[UIFont boldSystemFontOfSize:16.0f]} range:[self.tipsLabel.text rangeOfString:@"30"]]; |
| | | [attributeStr addAttributes:@{NSForegroundColorAttributeName:[UIColor dd_hexStringToColor:@"0xff4000"],NSFontAttributeName:[UIFont boldSystemFontOfSize:18.0f]} range:[self.tipsLabel.text rangeOfString:@"30"]]; |
| | | self.tipsLabel.attributedText = attributeStr; |
| | | } |
| | | |
| | |
| | | { |
| | | _tipsLabel = [[UILabel alloc] initWithFrame:CGRectZero]; |
| | | _tipsLabel.backgroundColor = [UIColor clearColor]; |
| | | _tipsLabel.font = [UIFont systemFontOfSize:16.0f]; |
| | | _tipsLabel.font = [UIFont systemFontOfSize:18.0f]; |
| | | _tipsLabel.textColor = [UIColor dd_hexStringToColor:@"0x333333"]; |
| | | _tipsLabel.numberOfLines = 2; |
| | | _tipsLabel.numberOfLines = 3; |
| | | _tipsLabel.textAlignment = NSTextAlignmentCenter; |
| | | } |
| | | return _tipsLabel; |