Changing orientation for a view

I have an app that is all on portrait, but there are 2-3 views that should be only landscape. I made a new iosScreen with landscape orientation and I tried to use this code to change the screen and view when a button is pressed:

Dim s as new iPhoneScreenLand
App.CurrentScreen.Content=s.Content
Dim v as new vMap
self.pushTo(v)

And apart from going through the open event twice (as the content of the iPhoneScreenLand is vMap) it doesn’t do anything. It opens the view, but it stays portrait.
What should I do?

Unfortunately this doesn’t seem to be possible using Xojo.

I have tried several times and never found a solution. Maybe @Jason King ?

I really hope there is a way, as the app is almost ready to go…

File a bugreport (or search for case ) you may get response from the developers

[quote=460201:@Jeremie Leroy]Unfortunately this doesn’t seem to be possible using Xojo.

I have tried several times and never found a solution. Maybe @Jason King ?[/quote]
I was never able to do this either. Maybe with some clever view transforms it could be emulated? But the way Xojo handles screens is too restricting. I have a feedback case from 5-6 years ago to add useful events to iOS. Doubt it’s ever going to happen.

Beyond feasability, which indeed does not seem possible, an app that would require the user to rotate his device to go from portrait to landscape and back seems like a strange design.

Why not elect instead to do everything in landscape ?