Wednesday 15 April 2015

ios - What's causing the massive changes in autorotation in 8.1 compared to 8.0.2? -



ios - What's causing the massive changes in autorotation in 8.1 compared to 8.0.2? -

i'm coding video processing app , submit app store when ios 8.1 came out. updated iphone xcode , hell broke loose. in simple single viewcontroller interface nil rotating anymore except statusbar, doesn't automatically hidden anymore in landscape mode...

i figured because using deprecated willanimaterotationtointerfaceorientation: little custom rotation actions had, implemented traitcollectiondidchange: , viewwilltransitiontosize: specs instead. viewwilltransitiontosize never gets called in app , traitcollectiondidchange: called once, @ startup. device isn't telling app device has rotated.

after googling i've tried using name:uideviceorientationdidchangenotification. @ to the lowest degree selector called 1 don't know how manually handle all rotation.

my didfinishlaunching... , viewdidload simple. alloc uiwindow, storyboard, set viewcontroller there, create rootviewcontroller, makekeyandvisible. based on 1 of apple's avfoundation demo apps. in didload add together subviews , toolbar etc, nil out of ordinary , did work on 8.0 , 8.0.2 on kinds of devices 7.1 simulator etc. still runs flawlessly on ipad 8.0.2... reason haven't posted code i'm 100% sure right on end.

main weird thing can't seem find problem. no errors in console or elsewhere either.

does have thought of might causing this? didn't think point release create such massive differences , again, no 1 else seems having this. issue/bug in actual storyboard file?

and, mainly, since can rotation notifications through uideviceorientationdidchangenotification, how manually handle rotation/resizing stuff? have been looking on answers no avail , out of time spend on project :(

cheers!

alloc'ing uiwindow problem.

first, create sure navigation controller (or whatever you're using) set "initial view controller" in storyboard.

secondly, in appdelegate.m file, remove references uiwindow , rootviewcontroller appear in application didfinishlaunchingwithoptions. in case, removing next 2 lines fixed issues.

self.window = [[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]; [self.window makekeyandvisible];

you don't need set window's rootviewcontroller if using storyboards.

they're not needed when using storyboards, until 8.1 there never harm using them. took 2 days figure out, help , others too.

ios objective-c xcode auto-rotation ios8.1

No comments:

Post a Comment