Questions tagged [interface-orientation]

39 questions
14
votes
1 answer

How do I disable landscape orientation in iPhone but keep it enabled on iPad?

I am looking to allow app rotation on an iPad, but would like to keep it disabled on the iPhone, as it is too narrow. So far, I only see instructions on one device or the other, but not both. Any ideas?
Gabriel Garrett
  • 2,087
  • 6
  • 27
  • 45
8
votes
5 answers

UIDevice currentDevice's "orientation" always null

As per the title. Calling [[UIDevice currentDevice] BeginGeneratingDeviceOrientationNotifications] has no effect. DidRotateToInterfaceOrientation etc events are working fine, but I need to be able to poll the device orientation arbitrarily. How can…
7
votes
2 answers

Difference between Interface Orientation and Device Orientation?

What's the Difference between Interface Orientation and Device Orientation? Both of them seems the same but what's the actual difference between them?
user3526002
  • 537
  • 2
  • 8
  • 19
6
votes
2 answers

Custom iOS interface orientation change animation with OpenGL

I have an iPad app and am drawing the main view with openGL and I want to animate my own change when the device is rotated. Note that this app only draws occasionally, it is not constantly animating. Also my scene is a (very complex) 2D drawing,…
Robotbugs
  • 4,307
  • 3
  • 22
  • 30
6
votes
3 answers

Cannot rotate interface orientation to portrait upside down

Both on iPhone simulator and iPhone 3GS (iOS 6) I cannot manage to set the orientation to portrait upside down. I have just one ViewController. I've added this code in it: -(BOOL) shouldAutorotate{ return YES; } -(UIInterfaceOrientation)…
Maxim Chetrusca
  • 3,262
  • 1
  • 32
  • 28
3
votes
1 answer

Flex different MXML layout for each orientation

I have several MXML layouts that are used for my application's menu on the Playbook, I need to be able to create a different layout for each orientation because my side-bar menu wouldn't work when in portrait, what is the best way to create a view…
Hamid
  • 4,410
  • 10
  • 43
  • 72
2
votes
0 answers

How to disable portrait orientation for Ipad in swift 2 and xcode 7

I have been having this issue with the layout orientations specifically with ipads. In xcode, I clicked on the project itself in the left panel and disabled portrait layout. This worked for iphones and ipods but not ipads. The application is run on…
AJS
  • 113
  • 9
2
votes
1 answer

Can’t tap button after interface rotation

I’ve got a view that has to be presented both in landscape and portrait. The transition between different orientations is done by repositioning and resizing the subviews. One of the subviews is a button (plain UIButton with an image background).…
zoul
  • 102,279
  • 44
  • 260
  • 354
2
votes
6 answers

iPad launch orientation not detected

I have an iPad app that works correctly except for an odd issue during launch. I've read several questions & answers regarding orientation, but this still has me stumped. The root view controller is a UITabBarController with 3 tabs. Two of the tabs…
Gorm
  • 2,714
  • 1
  • 18
  • 12
2
votes
1 answer

MPMoviePlayerController interface orientation change in full screen

I have added MPMoviePlayerController in my view. and its working fine. and when I switch to this in full screen and change the orientation of device then no orientation change event is fired. so please can let me know how I solve this issue. Thanks
1
vote
0 answers

UIView not rotating

I have a UIViewController with UIWebView, Navigation bar and bottom tool bar. I am trying to rotate it to support interface orientation changes. But it is not working. I have returned YES in shouldAutorotateToInterfaceOrientation, but still not…
iOSDev
  • 3,617
  • 10
  • 51
  • 91
1
vote
1 answer

UILabel sizing during device rotation

In my app I have two labels. Second one should be positioned below the first one (with some small const padding). The first label is multi-lined and takes all possible width. So after changing interface orientation, its real height can change…
kpower
  • 3,871
  • 4
  • 42
  • 62
1
vote
1 answer

Observe interface orientation from the View

I was using NotificationCenter to observe interfaceOrientation change by UIApplication.willChangeStatusBarOrientationNotification. But UIApplication.willChangeStatusBarOrientationNotification is now marked deprecated. It is suggested to use…
Damian Dudycz
  • 2,622
  • 19
  • 38
1
vote
1 answer

Rotate portrait to landscape and portrait mode of my view controller

Normally my application shows all views in portrait mode except report view. Report view shows only when I am on settings view and I rotate my device to landscape mode. Now when I rotate my device to portrait mode again, report view is dismissed and…
SOF
  • 437
  • 2
  • 9
  • 19
1
vote
0 answers

iOS supporting UIInterfaceOrientationPortrait has issue with statusBar

In my iPhone application(iOS 6-8) i support only portrait interface orientation, it has an additional component – photo viewer, where you can view photos in all orientations. Problem is if you view photos turn the phone into a landscape position and…
1
2 3