autorotate

UIWebView inside programatically created UIView. How to autorotate it?

Hello, In my app, when a user selects a cell from a UITableView, I create a UIView programatically, add it to the window object, then create an UIWebView and a UIButton and add them as subviews to that view I created. myView = programatically created view webView = the UIWebView that is a subview of myView button = the UIButton that...

Problem on autorotate for UITabBarController and modal views

I have a problem opening and closing of a ModalView: when the user touches the button to open the view, or when it touches the button to close it, appears this message in Console: The view controller returned NO from _shouldAutorotateToInterfaceOrientation: for all interface orientations. It should support at least one orientation. Th...

iphone cannot rotate views in TabBar controller

Hello, I am working on an application that consists of a TabBar controller. Within on of its tab, I have a subclass of UITableViewController, within this list I have a Core-plot graph in the first cell and some other data in the 4 following cells. When I return YES in the shouldAutorotateToInterfaceOrientation method, I would expect the...

Tabbar Nav app, allowing one view to rotate while others do not

Hello, I have a tab bar application in which i have 3 diffrent views each with there own view controller. In the tab bar code i have this, to handle rotation. #import "RotatingTabBarController.h" @implementation RotatingTabBarController // Override to allow orientations other than the default portrait orientation. - (BOOL)sh...

How to keep image from autorotating?

I've got an UIImageView as a background image for my application, which, like a helicopter in distress, autorotates. The problem is when the orientation autorotates my image gets shifted all over the place and I don't like it. Since it's a simple texture I figure the user would prefer to have it stay in its place, and not autorotate. Wha...

Is there a way to skip animating a rotation from shouldAutorotateToInterfaceOrientation?

I would like to allow the orientation to rotate as per the shouldAutorotateToInterfaceOrientation call to my view controller. However, I'd like it to do so immediately and skip the rotating animation (the one that results in the corners showing the black rotating animation while the entire view rotates. Does anyone know if there is a w...

Set Orientation to Portrait on iPhone

Hi, I have an application that consists of a login, 3 tables, and then an image. You can rotate the image to landscape mode but what I want to be able to do is when the 'back' button is pushed and the app returns to the previous screen, I was the app to automatically rotate to give a portrait view. Is there any way of doing this? ...

Clean autorotation transitions in a paging UIScrollView

I have a paging UIScrollView in which the user pages horizontally through images, like Apple's Photos.app. That works, but now I'm trying to add rotation support. I've got the view rotating OK and have managed to set the contentSize, bounds, and subviews' frames properly to adapt to the different orientations. So before and after the ro...

Rotating a UIView programmatically

Should setting an autoresizeMask on a subview and autoresizesSubviews on the superview automatically resize and rotate the view if the return value for shouldAutoRotateTo... is YES? Because its not. I have a scrollView and pageControl on my MainWindow, and the scroll view subviews are loaded from xibs. Consequently, do i need to chang...

Auto-rotation on navigationBar

Hi there, I've got a navigationBar that does not auto-resize when rotating the device anymore. So the navigationBar keeps it's portrait height of 44 pixels and does not shrink down to 32 pixels. I'm using a custom UITabBarController subclass which initializes the UINavigationControllers and adds them to it's viewControllers array. Since...

iPad Orientation Question - One Orientation or All four - can't just get two to work.

Hey there all, I've got an iPad app that I absolutely need to have in just landscape, I know the situation on the suggestions but for this app it needs to be landscape. Now here's my problem. I have editted my .plist file to support both landscape left and landscape right in the appropriate manner and have put an autorotate snippet in...

Is there a way to rotate the view after it has loaded completely?

I am looking for a way to rotate a view after the view has been load when it has been present as a modal view. I envoke my view by calling: [self presentModalViewController:cntrol animated:YES]; And in that modal view controller i am rotating via: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation...

custom UIViewController subview does not rotate but superview does, help me work out why?

Simple iPad app. App loads and displays a UITableView controlled by a subclass of UIViewController. This works and rotates perfectly. Clicking on a row in the table view causes a new subview to be created, also controlled by a UIViewController subclass. This displays fine in portrait but does not adjust to landscape and does not respon...

How do I initialize a view to an interface orientation?

The problem is that I am launching in-app email and triggering keyboards (via UITextFields) and they are coming up portrait on my landscape app. I am able to rotate it portrait, then rotate it landscape again, observing the black rotation corners animation that occurs when an app rotates from portrait to landscape. Since I've locked ou...

Auto rotating ipad sub views

I have a large application that I am working on which has a primary view, call it a root view, with toolbar at the top for program control. There are a number of additional views that overlay the "root" view but leaving the toolbar visible - There is a popover menu that controls which sub view is show over the "root" view. Please note, I...

How do you stop autorotate when a modal view is active?

My application crashes if I attempt to rotate the iPad when a modal view is present. How do you stop autorotation while modal views are present or better yet how do you make it so that modal view rotates along with everything else (when the application crashes everything rotates but the modal view)? Many thanks! ...

Autorotation in UINavigationController

There're an UINavigationController with rootViewController (as root) and secondViewController (as a child). The rootViewController should be able to rotate to any orientation (that works as expected, I just override the shouldAutorotateToInterfaceOrientation), but the secondViewController should work in Portrait mode only (here, I set th...

How to auto rotate your own custom views?

I've learned that the best way to get graceful rotation is to set the auto rotation mask on the view that you want resize or move. This works fine if you're using SDK views like UILabel, but if you have your own custom view that uses the drawRect method it doesn't rotate as gracefully. In fact the only thing that happens is that it stret...

Getting the rect of the rotated view in willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:

I am trying to animate between portrait and landscape orientations by hooking the various autorotation methods in UIViewController. Due to some subtleties of my view hierarchy, I'd like to set the frame of a child UIScrollView in the first half the animation and then scroll into position during the second half. This requires knowledge ...

iPhone/iOS SDK: Autorotate main view, but not child view?

Here's what I'm trying to do. I have a single view ("primaryView"), controlled by a customized view controller. primaryView contains a scrollview, which contains an image. Sitting on top of the scroll view (NOT inside it) is a small view ("buttonsView") containing a few buttons. Basically, when the user rotates the phone, I want butt...