修改iPhoneX适配问题

This commit is contained in:
xuemh
2018-03-28 20:46:46 +08:00
parent 4aa8fe2bbc
commit 62c7398284
4 changed files with 35 additions and 4 deletions
@@ -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];