ipad - Getting different Frame for RootViewControllers for iOS 7 and iOS 8 -
ipad - Getting different Frame for RootViewControllers for iOS 7 and iOS 8 -
hi facing unusual issue. adding uiviewcontroller window's rootviewcontroller. have set viewcontrollerxib's autoresizing maskall. when run project on ipad ios 7 in landscape mode, screen size (1024,768). when run on ipad ios 8, screen size (768,1024). not able figure out why happening. due viewcontroller's subviews not loading proper screen size since passing them viewcontroller's screen size. can help me out on this?
but when run on ipad ios 8, screen size (768,1024).
it's because in ios 7 , before, app rotation involves applying rotation transform root view controller's view, while window , screen remain pinned device. in ios 8, entire app literally rotates. major alter , can indeed break existing code if expecting rotation transform. on other hand it's much improve - in ios 8, rotation means screen, window, root view controller's view alter size (they swap height , width) - , means if app launches landscape has right dimensions right start.
if need pure device coordinates in ios 8 can them new uicoordinatespace protocol (https://developer.apple.com/library/ios/documentation/uikit/reference/uicoordinatespace_protocol/).
ios ipad ios7 ios8 xib
Comments
Post a Comment