iphone - Present a rotatable view controller over another view controller locked to portrait orientation on iOS 8 -


i have fullscreen view controller, let's call background view controller, root view controller. want present view controller on top of it, in foreground, doesn't fill screen. i've done using self.presentviewcontroller() foreground view controller's modalpresentationstyle set overcurrentcontext.

my problem want background view controller stay locked portrait, , want foreground view controller able rotate device. far i've been able rotate foreground view controller, background view controller rotates it. both view controllers control uiscrollviews, if make difference.

i've tried overriding supportedinterfaceorientations() , setting portrait , all background , foreground view controller respectively, results in nothing rotating @ all. i've tried playing shouldautorotate() didn't help.

how can accomplish this? in advance.


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -