iphone - Initial Interface Orientation to Landscape iOS 9 -
technical note tn2244: launching iphone application in landscape states:
the values of uisupportedinterfaceorientations key determine how status bar positioned while the app launching. in ios 7 , below, if uiinterfaceorientationportrait value present, status bar positioned portrait orientation. otherwise, status bar positioned according first orientation appears under uisupportedinterfaceorientations key.
so in ios 8 fine put uiinterfaceorientationlandscape
first in uisupportedinterfaceorientations
list have app start in landscape.
it not work anymore in ios 9. having uiinterfaceorientationportrait
in list @ any position forces app start in portrait.
question
is there known workaround this? need app start in landscape.
note: using viewcontrollers' supportedinterfaceorientations()
method not option takes effect after launchscreen presented.
having uiinterfaceorientationportrait in list @ position forces app start in portrait.
that absolutely correct — detective work. took me lot of experimentation figure out! huge change ios 8. have summed situation well.
fortunately, workaround simple. in info.plist, include 2 landscape orientations. app launch whichever 1 first.
now implement application:supportedinterfaceorientationsforwindow:
in app delegate return all. way, when time comes show portrait view controller, legal so.
in other words, think of info.plist launching app needs know, , application:supportedinterfaceorientationsforwindow:
running app needs know.
Comments
Post a Comment