autorotate

Is it possible to auto-rotate a modal view but not its parent?

It seems that if a modal view's parent returns false to shouldAutoRotate... the modal view will also not autorotate. How can I have a main view which will never rotate, and a modal view which will always rotate? ...

iPhone autorotation for too many objects on screen

Hi! I have a BlahAppDelegate, BlahViewController and no nibs in my iPhone app project. Only some subclasses of UIView in addition. All this is situated in main.m. My app has 6 subclassed UIViews. Each of it contains 18 UIImageViews. I need to get autorotating work. Or custom rotating. Or something. For example it would be nice to fade t...

Subview Doesnt AutoSize When Added to Root View Controller

Hello, I have a root view controller that will have up to 10 or so subviews. I am implementing autorotation/autosize accross the entire app. My problem is this: - When I allocate all the view controllers and add each as a subview to the root controller during startup, everything works as it should. The only problem is that each view c...

Autorotate UINavigationController based Application in IPhoneOS 3.0

I have an application which have code like: window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // UIWindow *window; viewController = [TopicsViewController new]; //TopicsViewController *viewController; //This is a UITableViewController navigationController = [UINavigationController new]; // UINavigationController *...

Using accelerometer to detect iPad lock switch trigger?

So for complicated reasons I am managing view rotations myself, and am only implementing UIDeviceOrientationPortrait as the autorotating orientation. Anyway, when one clicks the screen lock on the iPad, the device will rotate to UIDeviceOrientationPortrait, which will cause my code to rotate, which I do not want to happen. For instance ...

shouldAutorotateToInterfaceOrientation and Animations

Hey guys, When I return NO from my shouldAutorotateToInterfaceOrientation: method in my view, my beginAnimations doesn't animate anymore! The code looks something like this: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation { return (UIInterfaceOrientationIsPortrait(interfaceOrientation)); }...

Black border corners when rotating iPhone

My app is landscape and returns true only for UIInterfaceOrientationLandscapeRight in the root view controller's shouldAutorotateToInterfaceOrientation call. However when I rotate the device to portrait and back, I sometime see black corners rotate through as if a thick black frame around the display is rotating and just visible on the...

Weird white space between navigationBar and statusBar when autorotate

Hi All: http://www.gamememore.com/li/iphone_q/left.png Now I am try to use UITabBarController to create my app When I first launch the app, the default screen is portrait and it works fine But when the phone rotate to left,there will be a white bar on the top of scrren I don't know the root cause,anyone can give me the comments how t...

UiSplitViewController doesn't autorotate.

Hello, I have recently run into a problem. My iPad app is somehow preventing the iPad from auto-rotating. My app loads a UISplitView with both of the view controllers returning YES for shouldAutorotateToInterfaceOrientation:. I have set up my info.plist to include the "Supported interface orientations" key with all four orientations....

How to Add Auto-Rotation to a jQuery Horizontal Accordion

I've built a horizontal accordion that animates on click. I want to add auto-rotating functionality to it so the slides will rotate by themselves every three seconds but i cannot figure this part out... Here is the code for the Horizontal Accordion: <div id="slideshow"> <ol id="slides"> <li class="slide open active" id="slide-1"> ...

shouldAutorotateToInterfaceOrientation always get called more than once.

(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation My code get this event more than once while device is rotating. I'm searching in apple docs for reference but seems no lucky. Could any one offer a hint why this is happening? My code is an apple doc sample code, without any change but some logs...

My app crashes after multiple rotates

My app is crashing when I try and rotate it more than a couple of times. I first thought it was just the iPhone Simulator, so I loaded the app onto an iPod touch, and it crashed after fewer rotates in a row. I suspect it's a memory leak in one of my rotate methods. The only place I can think that the crash is being caused is in willRotat...

shouldAutorotateToInterfaceOrientation doesn't work on first launch after fresh app install

When the app I'm working on is installed either via Ad-Hoc thru iTunes or built directly to the device, upon launching for the first time, the only view controller in my app that responds to orientation changes doesn't receive calls to shouldAutorotateToInterfaceOrientation: with a landscape argument passed in; debugging shows that it's ...

MPMoviePlayerController: I need some help rotating (autorotating or whatever) the movie when device turns upside-down

Hi all I'm having some trouble trying to apply rotation to the movie player while it's playing... When you see the IPhone's video player (the default you have in the operative system), you realize that whenever you turn the device upside-down, the player rotates too. I want to achieve exactly the same thing in my app, but I don't know...

selectively allowing autorotation in TabBar / UINavigation app

Hello: I have a UITabBar/UINavigation application and I'm having some trouble allowing autorotation in a given view. The TabBar allows changing sections, with table view items. When one of the items is tapped, I push a new view which hides the TabBar and which should autorotate. I tried the easy way, which seemed most logical to me: di...

iPhone rotation causes memory warning

I am introducing auto-rotation to my app and I'm having an issue with a memory warning. Whatever orientation I start my app in, as long as the device remains in that orientation, I get no memory warnings. However, the first time I rotate the device the following warning is placed on the console: Safari got memory level warning, killing a...

iphone autorotation animation

Is it possible to turn off the animation for the autorotation? I want it to rotate, but I just dont want the animation to occur (like an instant switch). ...

"Hello World" iPhone app does not auto-rotate

OK, knowledgeable programmer-types, please be gentle... I'm having trouble getting a very simple, one-view "Hello World" app to rotate automatically. I go through the usual "Hello World" steps: Create a new View-based project. Double-click on the .xib file for the ViewController. Add a item from the Library. I've tried a Label as wel...

UINavigation Controller and Autorotation

I am using a UINavigationController to push and pop views. The Navigation bar is hidden. I have RootViewController, which is set to autorotate. It works just fine when it is visible. I also have GalleryViewController. It has autorotation disabled by just returning no. My problem is, when GalleryViewController is on the nav stack, ...

Autorotation and multiple view controllers

I'm creating an iPad application which should only work in portrait and portait upsidedown modes. For performance reasons in my applicationDidFinishLaunching method I'm creating several viewControllers, and adding them to my main window as subviews. I then hide the ones I don't want to see straight away. There is no tab bar or navigation...