landscape

UIView subview doesn't change orientation

I have a view controller which manages a view. I'm adding the my view controller subclass as a subview of the window swapping out another view. I'm running landscape mode on an iPad. The view apparently doesn't know that its in landscape mode. Its frame is confused. Is there something I can/should do to tell it that its in landscape,...

iPhone Landscape Mode returns incorrect view sizes

Hi Forum Getting a view's bounds rect while in Landscape Mode returns the wrong sizes: (I know there's been a lot of posts on Landscape mode, but nothing on this problem.) Starting from a new UIView Template Project, I'm adding a single UIView to the ViewController in Interface Builder (in Landscape Mode) and setting the view size to...

iPhone Accelerometer and landscape mode issue

I am calling a function in Accelerometer delegate method like this This is in ViewControllerX.m -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration { [self methodX]; } i am also calling another function in interface method like this This method is in ViewControllerY - (BOOL)should...

iPad Modal View rotates parentViewController View

When the application is in landscape mode (which I plan to force), displaying a modal view causes the parent view to rotate to portrait mode. If I set the return value of shouldAutoRotateToInterfaceOrientation to NO, the parent does not rotate, however the modal then slides in from the side and displays sideways. Below is the code that r...

Will Apple reject my app for using setStatusBarOrientation?

ViewController1 uses portrait orientation. ViewController2 uses landscape orientation. If I use: [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait]; Will my app get rejected? If I can't use this call, what is my other option? Simply rotating the images won't be sufficient since I need to use ac...

How to resize webview correctly in landscape mode in iPhone?

I add a navigationbar, a webview and a toolbar(from top to bottom) as subviews of my viewcontroller's view. I want the navigationbar and toolbar's height shrink a little in landscape orientation so I use autoresizingmask to make the height flexible. (UIViewAutoresizingFlexibleHeight will make navigationbar and toolbar's height shrink fro...

Alert views in portrait, iPad in landscape, and unable to rotate to anything but "other" landscape (180 degrees).

Update: Solved. See fix at bottom. In my iPad app which supports all orientations, if the app is loaded in landscape, weird things happen: Alert views appear in portrait, even though the rest is in landscape Rotating the iPad from landscape to portrait does not trigger a rotation (nor does it trigger any of the shouldAutorotate style ...

20px gap on top of landscape view in iPhone app running on iPad

I am running an "iPhone-only" app in the iPad simulator...When the orientation of the device is changed to landscape mode, I have a view controller that kicks in and programmatically loads a WebView. This works swimmingly in the iPhone (no gap on top of landscape view), but when simulating in the iPad, there's a 20px (I think?) gap at th...

css expanding based on portrait or landscape screen size ??

I have two divs that are floating next to each other. What i would like is to have it have a width of 100px when you are looking at it in portrait mode and lets say 200 px in landscape. This happens viewing on a mobile device actually. So the div will expand when in landscape mode and shrink up a bit in portrait. Any ideas? ...

How to draw canvas in respect of phone orientation (landscape , portrait) ?

There is no problem with portrait mode but when i try my app on landscape mode it doesn't look how it should.What is general aproach to solve this problem.My first idea is replacing X and Y places.If i am on the right track how should i do this ? Should i use an if statement at the beginning of the onDraw() function and write entire same...

pushViewController to open a view in landscape

Hi Guys, I am trying to open a view in landscape by pushing on navigation controller but it always open in portrait. First view is in portrait and when I click on a button then next view should be in landscape. I am trying following code Calling View: ResultViewController *resultView = [[ResultViewController alloc] init]; [[self...

Printing landscape html->pdf using abcPDF

Hello I am trying to get a PDF generated by abcPDF from html output to print the first three pages in portrait and then switch the fourth page to landscape. I have been able to get the html to switch into landscape for the fourth page by applying this class to a div that is the 4th page: .PageLandscape { width="100%"; height=...

touches in landscape and portrait orientations

Hi all, i am developing a game for iPad, on Portrait and landscape orientations. i am taking touches on four corners of the screen, touches is working properly on landscape mode, where as in Portrait mode actual problem, touches working on top corners but bottom corners touches is not working. i think in portrait mode the view frame s...

UINavigationBar root view doesn't rotate into landscape.

I have an application with a main menu screen consisting of a few buttons on link to other view controllers using a navigation bar which are consist of web views. In each of my view controllers including the root I have the following method to auto-rotate: (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)x { retur...

iPad UISplitViewController rotates unnecessarily when modal dialog is closed.

I have a reasonably simple split view application adapted from iPhone code. The main functionality is in shared classes with iPhone and iPad specific classes inheriting and augmenting the code. All the classes used in the iPad app have the following: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrie...