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?
[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 its 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 ?