Titanium window orientation in navigation window of iphone - orientation

i want to change the orientation mode of perticular window on navigation window in ios titanium ?
Is there any way to change one window on slider in landscape mode and the the other navigation window same in portrait mode.

Setting specific Orientation Modes should do the trick. Unless what you mean is a tab group/scrollable views with different orientations. That's might not behave as well as you like.

Related

How do you launch an iOS app in the current device orientation?

I'm working with Xamarin and am having troubles launching my app in the current device orientation.
I have a UINavigationController that I set on my main UIWindow as the root controller. I created a custom UINavigationController which overrides the methods :
GetSupportedInterfaceOrientations
and
ViewWillTransitionToSize
If I hold my iPad in landscape mode and start the app, it will start in portrait mode and then rotate in landscape. I'd like to make it start in the same orientation as the device's physical orientation. From the doc I've read it seems that since iOS 8, everything related to rotations should be handled in the root uiview controller which is my custom UINavigationController.
And here's my problem... let's say I want to start my app in the current device's orientation and then block everything except Portrait once the app is loaded. I tried the 2 following solutions and none worked.
1- I put all interface orientations available in the supported interface orientations key in the info.plist file. I launched the app while holding the iPad in landscape mode. In this case, my app starts in the same orientation as the device which is cool. What is not cool is that it doesn't call my navigation controller method GetSupportedInterfaceOrientations anymore. So even if I change the return value of that method to Portrait only later one, it does absolutely nothing since the method is never called anymore.
2- I removed all supported interface orientations from the info.plist file. I lauched the app while holding the iPad in landscape mode. In this case, my app starts in portrait mode and then rotates to landscape. I want to prevent the rotation and just start the app in the current device's orientation (landscape). With this setup though, I can later change the supported orientation as the navigation controller method GetSupportedInterfaceOrientations is being called everytime we try to rotate the app.
In apple's doc, it says "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."
The part where the view rotates to the appropriate orientation PRIOR to showing the window doesn't seem to work for me. It shows the window and then rotates it after.
So how do you launch an app in the current device's orientation (without the user seeing your first view rotate from portrait to whatever) and then be able to change the supported orientations later in the app? Example : I hold my iPad in landscape mode. I launch my app. First view I see is already in landscape mode. I can then rotate my iPad to change the view in portrait/landscape back and forth. Then I click a button which changes the supported orientation to Portrait which prevents me from changing the orientation to Landscape anymore.
Thanks!

UITabBar overlaps the navigation bar when editing items in landscape mode

I'm currently developing an iOS application in which I need to use a tab bar. While testing it on a small device (iPhone 4s) I found that If I rotated the device into landscape mode the title is overlapping the title bar.
Before rotation :
After rotation :
Is there a way I can fix this ? I don't have acces to this view because it is managed by the UITabBar.

iOS: Change Orientation only for few pop-up views

I have an app which runs only in Landscape mode. All working well. But I have few pop-up views like Apptentative feedback view and Twitter Sheet view, works great when in portrait mode. So how can I change orientation forcefully when loading these pop-ups and back to landscape when these pop-up closes.
You can't force an orientation change. You can only support changes in orientation. IE moving the device 90 degrees to the right.

Rotating a view in objective-c

I am trying to make the multitasking switcher open in landscape mode all the time... even when the phone is being held in portrait... Any ideas? The class is "SBAppSwitcherController" and I'm calling the method "viewDidAppear"
Just set the Supported Interface Orientations to only landscape modes. To do that, you go to your project in the Project Navigator. Then, you will see the Supported Interface Orientations header. Click the dark icons referring to portrait mode to make them light. Then your program will only be in landscape mode. So, if I know what you are saying, you are done!

iPad tab bar application needs to support both portrait orientations

Is there an easy way to set my application so that it can automatically rotate to only the portrait modes (no landscape)?
Found the answer - I had not set the autorotation delegate in all of my view controllers

Resources