How to disable Tabris iOS client orientation? - ios

Is there a way to disable Tabris iOS client orientation? Meaning, I would like to fix the application orientation not change it when device orientation change.

Currently there is no Tabris/Java API available ...yet - but it's planned.
To fix the App orientation, click on your Xcode App target, and select only the "Supported Device Orientations" (Options available there: Portrait, Upside Down, Landscape Left, Landscape Right)

Related

How to make iOS app orientation portrait only?

How do I make my iOS app Portrait Only? It looks like it's already in portrait mode currently but when I flip my device it rotates still. I am using tableViews and collectionViews within my app, I'm not sure if they would affect these settings or not.
To fix this problem I had to add "Supported interface orientations (iPhone)" and set the item to "Portrait (bottom home button)" in my info.plist file

Prevent display rotation on iPad

In Xcode in Device orientation section only "Portrait" is selected. On iPhone it works properly, when phone rotated to landscape mode it still works as portrait, so no changing. But on iPad (6th generation) when display is rotated to landscape mode actual screen in my app is also rotated, but without autoscaling. But I don't want that it will be possible to rotate screen on iPad. Do I need to fix it by code or some other settings on Xcode besides "Device Orientation" settings
So in the info.plist for your app you just gotta go to "Supported interface orientation (iPad)" open that section up with the disclosure triangle and delete the items you don't want to rotate to for the iPad!

IOS Simulator behaving correct?

Starting the IOS Simulator for IPhone 6s does appearing the device in portrait mode.
Then when I rotate the device with Hardware->rotate, then the device rotates, but the content not.
Is this the way in behaves in reality ?
I am asking, because I can't test the rotation correctly.
When I start my app, then things which should be centered appearing not in the center. Should content rotation not be managed by IOS. Do we have to care of these things?
UPDATE
Added a new Scrrenshot.
Good to know that the Iphone's default screen is not rotating.
This leads to the following question :
But is the following correct. When the device is in landscape mode, the app (rotable app) starts in portrait and immediatelly rotates to landscape. So we have to handle the rotation change at start of the app ?
Please goto project ->targets->General goto Deployment Info section and check Device orientation

Why iPhone sill rotate after I uncheck the device orientation (delete rotation from info.plist file)

I don't check any device orientation on the Deployment Info page, that is, there is no entry in the Supported interface orientations on the Info.plist. However, the iPhone still can rotate to landscape. How can I disable iPhone rotation? Do I need to write some code in the view controller? Thanks in advance.
When you don't check any orientation, it defaults to all of them. To keep the orientation at only portrait, you must check the portrait only orientation.
You can toggle here in the device orientation section which orientation that you want your app to support:
Just set it to portrait and you'll be fine.

Is there a way to start iOS app with the initial orientation dynamically?

I know that we can define main orientation in iOS apps. However I couldn't figure out a way to do what I want: If the device is in landscape mode, start the whole application in landscape mode. If not, start it in portrait.
Currently, if I start the application after rotating the device into landscape mode, It opens in portrait mode than it rotates. Is there a way to start the whole app in landscape? (Already rotated window)
Yes; just indicate that you support all device orientations in your info.plist. You can see this in Xcode in your project settings under "General" in Xcode 5.
Quote from Apple's UIViewController documentation:
Note: At launch time, apps should always set up their interface in a portrait orientation. After the application:didFinishLaunchingWithOptions: method returns, the app uses the view controller rotation mechanism described above to rotate the views to the appropriate orientation prior to showing the window.

Resources