链接wifi界面适配iPhone X
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user