WRNavigationBar_swift icon indicating copy to clipboard operation
WRNavigationBar_swift copied to clipboard

屏幕高度是896的Max和XR导航栏问题。修改isiPhone X 即可。

Open WolfSamWell opened this issue 7 years ago • 2 comments

见代码。 2个地方都要修改。 class func isIphoneX() -> Bool { // return UIScreen.main.bounds.equalTo(CGRect(x: 0, y: 0, width: 375, height: 812)) if (UIScreen.main.bounds.height >= 812) { return true} else{return false} }

WolfSamWell avatar Sep 18 '18 08:09 WolfSamWell

加上 UIDevice.current.userInterfaceIdiom == .phone 平板才會正常顯示 if (UIScreen.main.bounds.height >= 812 && UIDevice.current.userInterfaceIdiom == .phone) { return true} else{return false} }

joseph-517 avatar Sep 19 '18 10:09 joseph-517

class func isIphoneX() -> Bool { return UIScreen.main.bounds.equalTo(CGRect(x: 0, y: 0, width: 375, height: 812)) || UIScreen.main.bounds.equalTo(CGRect(x: 0, y: 0, width: 812, height: 375)) || UIScreen.main.bounds.equalTo(CGRect(x: 0, y: 0, width: 414, height: 896)) || UIScreen.main.bounds.equalTo(CGRect(x: 0, y: 0, width: 896, height: 414)) }

shen0607 avatar Oct 24 '18 01:10 shen0607