修改iPhoneX适配问题
This commit is contained in:
+7
-2
@@ -90,9 +90,14 @@
|
||||
|
||||
self.button.tag=231+i;
|
||||
|
||||
CGFloat y = 0;
|
||||
if (is_iPhone_X) {
|
||||
y = kScreenSize.height -180 - 34 + 10;
|
||||
} else {
|
||||
y = kScreenSize.height -180 + 10;
|
||||
}
|
||||
|
||||
|
||||
self.button.frame=CGRectMake((wspace+i * (btnwidth+wspace)), (kScreenSize.height -180 + 10),btnwidth, btnwidth * 243/210);
|
||||
self.button.frame=CGRectMake((wspace+i * (btnwidth+wspace)), y,btnwidth, btnwidth * 243/210);
|
||||
[self.button setImage:[UIImage imageNamed:nomalarr[i]] forState:UIControlStateNormal];
|
||||
|
||||
[self.button addTarget:self action:@selector(fourControlBtnCilck:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
Reference in New Issue
Block a user