Is there a way to load a portrait only view controller in portrait orientation even though the parent view controller (and phone) is in landscape orientation?
This particular UIViewController only fits in Portrait mode (it's a color picker), so the code in shouldAutorotateToInterfaceOrientation: returns YES only for portrait orientatio...
Alright, so here's the problem I'm having (it's a weird one.)
I added a new UIViewController for the app I'm building. The first view controller works perfectly, orients correctly, etc. The second one orients horribly.
This is how it looks if you start in landscape and then change orientation to portrait:
And then, if you start in p...
Hi,
My application has a tab bar controller with a navigation controller in each of its tabs . The application is completely Landscape oriented. But when I try to run in iPhone OS 4, it is not changing to landscape at all. Any suggestions please?
...
I have an iPad Split View Application that brings up a modal view to display certain content. When I bring up the modal (in PageSheet style) and then change from Portrait to Landscape (or vice-versa) and then dismiss the modal the orientation of the detailViewController (the parent of the modal) turns 90 degrees.
So if I am in landscape...
So I have a UISplitViewController that is the root view of my program. I have set the initial orientation to be LandscapeLeft and have all 4 orientations supported in my plist.
If I launch the app in portrait - the view that is shown is my root view not the detail view which obviously is not what I want. As soons as I rotate the device...
Hello All,
Im writing an app that I would like to display different views based on orientation. For example, if the device is portrait load pView, if landscape load lView. Below is the code ive currently tried.
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)
interfaceOrientation duration:(NSTimeInterval)durat...
I would like to restrict my application which uses Tabs to portrait orientation. I have 4 tabs and I set the "android:configChanges="orientation" for all 4 tabs but the orientation still changes when i rotate the phone. Seem pretty straight forward. Am I missing something?
Thanks
...
I have an UISplitViewController base project.
I want to have a different detail View depending the orientation of the app.
Exemple :
In landscape when I select a row in the TableView, I want the detailView to be an UIWebView.
But in portrait I want the detail view to be a complex custom view.
Is it possible ?
Thanks.
...
I've spent the last hour or so trying to work out why not all my UIViewControllers are receiving orientation change notifications.
I've got a subclassed UIViewController attached to the window, that internally creates a few other UIViewControllers to manage smaller portions of the screen which are re-used elsewhere in the application I'...
How can I change the orientation to landscape while testing the app on deviceanywhere? I tried to right-click on the device, and click on Controls -> Turn left, that turned the phone, but my app did not orient to landscape. My app works well for rotation on the actual device.
Thanks
Chris
...
Is there a way where I can only allow my app viewable in landscape mode? I've managed to default the application's orientation to landscape, however in the iPad simulator, when I do Command->Arrow, the application rotates to portrait. I've removed the listings in the plist under "Supported interface orientations" for both of the Portrait...
I'm refactoring one of my apps from the iPhone to the iPad and this has resulted in the removal of tabs as I've been able to combine functionality onto 1 screen and use popovers to enable the user to select stuff that previously required a new tab.
I'm basically left with 2 tabs now. One (which is best viewed landscape) shows a map of t...
In order to avoid a huge hassle with ugly UI glitches from the popover's view after a surprise rotation, I just want to dismiss the popover altogether when this happens. However, for whatever reason, the various orientation notifications, such as (void)willRotateToInterfaceOrientation:duration: do not get called when they're located ins...
Hi,
I need to retrieve the orientation of my phone. At the moment i wrote this :
public void onSensorChanged(SensorEvent event) {
switch (event.sensor.getType()){
case Sensor.TYPE_MAGNETIC_FIELD:
this.mag_vals = event.values.clone();
this.sensorReady = true;
break;
case Sensor.TYPE_ACCELEROMETER:
this.acc_vals = ...
Hi guys, i want to test the orientation by using css for ipad.This is the css file i use
@media only screen and (device-width:768px) and(orientation:portrait) {
body { background: green; }
}
@media only screen and (device-width:768px) and(orientation:landscape) {
body { background: red; }
}
I am not sure whether this will work or not...
I'm building an app in the browser for the iPad and was wondering if it's possible to lock the orientation of the viewport? I've checked apple's documentation and the only thing I've found says orientation is read only : http://developer.apple.com/safari/library/documentation/DataManagement/Reference/DOMWindowAdditionsReference/DOMWindow...
Hi all.
I see a few questions about this here, but I can't really understand what exactly I should do to implement rotation of UIViews.
I have two Default pngs for Landscape and Portrait mode, but how the view knows that at a particular time it has to rotate his own content? What methods I should implement, and what allows me to change...
Like many people, I have a splash screen that animates off to reveal the first view of my app. I've been reworking this for the iPad and if you are holding the device in portrait or landscape modes, everything works as intended, the correct default image is used, the correct image that is used to animate this off is used, all orientation...
I have a very simple UIScrollView example that simply doesn't do what it's suposed to.
Not sure if it's a bug with the API or a bug in my code.
Basically, I've got a UIViewController with a UIScrollView as it's view.
When I add it to the UIWindow and change the orientation of the iPad I log out the UIScrollViews size, which is incorrect...
I'm using Apple's sample code for having separate Portrait and Landscape view controllers (presenting/dismissing a modal view controller from within the orientationChanged method). However, it creates a number of problems:
The status bar doesn't rotate. If I manually setStatusBarOrientation, I get very strange behavior.
The transitio...