cocoa touch - iOS 8 bug with navigation stack / rotation? -



cocoa touch - iOS 8 bug with navigation stack / rotation? -

i have 3 uiviewcontrollers: vc1, vc2, , vc3 appear in succession on uinavigationcontroller. vc1 has next rotation properties:

- (bool)shouldautorotate { homecoming yes; } - (bool) shouldautorotatetointerfaceorientation:(uiinterfaceorientation)tointerfaceorientation { homecoming (tointerfaceorientation == uiinterfaceorientationportrait); } - (nsuinteger)supportedinterfaceorientations { homecoming uiinterfaceorientationmaskportrait; } - (uiinterfaceorientation)preferredinterfaceorientationforpresentation { homecoming uiinterfaceorientationportrait; }

while vc2 , vc3 have next rotation properties:

- (bool)shouldautorotate { homecoming yes; } - (bool) shouldautorotatetointerfaceorientation:(uiinterfaceorientation)tointerfaceorientation { homecoming (tointerfaceorientation != uiinterfaceorientationportraitupsidedown); } - (nsuinteger)supportedinterfaceorientations { homecoming uiinterfaceorientationmaskallbutupsidedown; } - (uiinterfaceorientation)preferredinterfaceorientationforpresentation { homecoming self.presentedviewcontroller.interfaceorientation; }

while on vc3 (which preceded vc1 , vc2 on navigation stack of course), if user pushes restart button, want take them vc1:

- (void) restartbuttonpushed { [self.navigationcontroller poptorootviewcontrolleranimated:yes]; }

this works, if i'm in landscape mode on vc3, when force restart take me vc1 in landscape mode. whereas in < ios8, vc1 forced portrait mode. bug in ios8? or perchance fixed in ios8 exposed how doing wrong way?

interesting side note, if force restart button while in landscape mode , on vc2, works should, vc1 forced portrait mode.

ios cocoa-touch uiviewcontroller

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -