ios - Incorrect ViewController Orientation After Segue IOS7 -


i have 2 viewcontrollers, main 1 shouldautorotate-no , second 1 shouldautorotate-yes. i'm presenting second viewcontroller function presentviewcontroller: , using uimodalpresentationcurrentcontext because have transparent background on second 1 still view first 1 on back.

the problem when in first viewcontroller in "landscape" (appearing in portrait because of shouldautorote-no) , present second viewcontroller, second 1 appears right in landscape, if rotate iphone portrait not rotate, unless rotate phone landscape makes orientations start working again normal.

the behaviour of status bar correct one, problem viewcontrollers.

any suggestions?

- (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {     // return yes supported orientations         return uiinterfaceorientationislandscape(interfaceorientation); }  -(nsuinteger)supportedinterfaceorientations {         return uiinterfaceorientationmaskall; } 

your can provide type of orientation want in present view controller.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -