链接wifi界面适配iPhone X

This commit is contained in:
xuemh
2018-03-30 21:39:49 +08:00
parent 62c7398284
commit d51b0c90cd
3 changed files with 21 additions and 4 deletions
@@ -96,6 +96,7 @@ extern BOOL isfromCameraView;
self.view.backgroundColor=[UIColor whiteColor];
_deviceArry =[[NSMutableArray alloc]init];
[self updateUI];
[self getSSid];
//输入框在上面新UI 可去
@@ -136,6 +137,17 @@ extern BOOL isfromCameraView;
[self creatConnectStateUI];
}
- (void)updateUI {
CGFloat yOffset = 0;
if (is_iPhone_X) {
yOffset = 20 + 88;
} else {
yOffset = 20 + 64;
}
self.nodImg.frame = CGRectMake(12, yOffset, 10, 10);
self.wifiNamelabel.frame = CGRectMake(23, yOffset - 18 + 5, 336, 36);
}
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];