Ownership limit in iOS 8 The UIScreen class now shows the device's orientation. To fix this, I can use the new original bounce of the property, instead of the border, the countrybox is measured in pixels, what code did I put in the area ... for the pixels? (This code is in my AppDelegate.m)
[[USScreen main screen] Responds givesreacceptor: @sillector (original bounds)]; If (................... == 1334) {UIStoryboard * iPhone6 = [UIStoryboard storyboardWithName: @ "iPhone6" bundle: zero]; UIViewController * Initial ViewController = [iPhone6 instantiateInitialViewController]; Self.window = [[UIWindow alloc] initWithFrame: [[UIScreen main screen] border]]; Self.window.rootViewController = Initial view controller; [Self. Windows and knowledgeable]; }
Or have I got the wrong code implemented for basic bounds?
Screenbonds do not work ...
CGRect screenbount = [[UIScreen main screen] border]; If (screenbounds.edge.height == 667) {// code}
you You can use the screenbonds:
give a screen ball: CGRT = USScreen.MinesScreen (). Direct Limits // In addition, you can use these two rows to reduce the incoming code. Screenshuge = Screen size Fourth screen = screen size. If if (screenhit == 1334) {// code goes here}
No comments:
Post a Comment