How I can activate landscape mode in Swift, xCode?
I want that all my application is see in landscape mode.
Thanks
Apple has a nice tutorial on it, with pictures and full walkthrough.
Basically you need to enable landscape mode in Xcode:
Related
I develop iPad app using Sencha Touch 2.4. My ipad using iOS 9. The problem is when I turn my iPad landscape and I open my app, the display of my app is a mess. like this
btw my screen app is the blue one.
But when I turn my iPad portrait then I open my app it's normal and when I turn my iPad landscape my app also turn landscape normally. Just when I open my app in landscape mode will be unnormal.
Please any body can help me?
Thanks,
Seno
i am also getting same issue. when i open landscape mode in iphone and ipad.
In config.xml file i set "default" only
This issue is happening in iOS ONLY, all android and pc versions of the app display in landscape mode fine with no issues
I am trying to get the app to display in landscape mode in iOS OR at the very least be able to orient to landscape mode when the iphone/ipad is tilted to landscape position
However no matter what I try the app will always open in portrait mode
The dimensions are 480x320 and I have tried setting the aspectratio in publish options to landscape, I have even tried
stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
I have also tried adding "aspectRatio> landscape /aspectRatio>" to the XML file
I have been looking for DAYS for a fix on this issue and nothing works
Please some one help!
How are you publishing your app (i.e. FlashCC, FlashBuilder etc) and are you using the latest AIR SDK?
Publishing landscape only iOS apps is definitely possible with AIR so I suspect it's going to be an issue with how your settings currently are.
If you're targeting iPads perhaps try including a landscape default image.
Default-Landscape.png, Default-LandscapeRight.png etc.
I am looking to allow app rotation on an iPad, but would like to keep it disabled on the iPhone, as it is too narrow.
So far, I only see instructions on one device or the other, but not both.
Any ideas?
In Xcode 6 you have to edit Info.plist:
I am working on an iPad app and I want this app only in landscape mode. Please suggest me a suitable answer for this task.
set this in app target
this may help you
I'm trying to use SimFinger to make a screencast of my iPhone app. When I launch it I obtain the msg "Couldn't find iOS Simulator".
Actually, I succeed in making the video, but the landscape mode isn't supported (And I need that the "fake" iPhone changes orientation).
I've tried to change #"iOS Simulator" in the FakeFingerAppDelegate.m:
if([application.localizedName isEqualToString:#"iOS Simulator"])
{...}
but nothing happens.
Any suggestion?
What could I use instead of SimFinger to screencast an app showing it both in portrait and landscape mode, with a cursor like that of SimFinger and with a fake mask?
I resolved thanks to this link.
It needs to change the name of the iOS Simulator application in the app delegate.