Questions tagged [uiinterfaceorientation]

The orientation of the application's user interface in Apple OS.

uiinterfaceorientation
316 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
314 views

UIInterfaceOrientation in Landscape only in one controller otherwise only Portrait has to be supported

I have to write an universal app, the iPhone part has only to be presented in Portrait so it would be the preferred orientation and it doesn't have to support other orientations, BUT I encountered the ...
jerrygdm's user avatar
  • 450
2 votes
0 answers
67 views

No response of popover button while change the orientation from landscape to portrait?

My app cannot respond pop over button while i had change the orientation from landscape to portrait.Any one give a solution for the give issues
ios6's user avatar
  • 101
2 votes
1 answer
953 views

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 ...
Mitesh Khatri's user avatar
2 votes
1 answer
191 views

Squashed and distorted view after device rotation

I've been reading through theses pages for a while now and have been having some trouble getting my CGRect to load properly. I learned it was because I'm forcing an orientation after viewDidLoad runs, ...
DiverDown's user avatar
2 votes
1 answer
2k views

iPad landscape orientation height/width issue

I have an iPad app that's only supposed to run in UIInterfaceOrientationLandscapeLeft. I have set this in my plist, but all UIViewControllers are still allocated with a portrait frame, until they have ...
runmad's user avatar
  • 14.9k
2 votes
1 answer
520 views

interfaceorientation remains same after removeFromSuperview and again addSubview

I am switching between views using view animations, its works but I am having an issue with interface orientation. I have two views on window. authenticationViewCont mainViewCont Both have a button,...
Waqas Raja's user avatar
  • 10.8k
2 votes
0 answers
579 views

Three20, different images for portrait and landscape orientation possible?

I am using three20 to present a photo essay of a story I made after the February earthquake in Chile. I would like the app to display portrait type images when iPad device is in portrait orientation ...
diederik's user avatar
2 votes
0 answers
913 views

UIViewController orientation problems in iPad

I am presenting MFMailComposeViewController as modal from a view controller (lets call it xyz) added to nav stack. When user clicks on cancel button, the MFMailComposeViewController is dismissed. This ...
Dave's user avatar
  • 4,038
1 vote
0 answers
525 views

Have anyone experienced same error log in related with view controller orientation in iOS16?

I know that I should use supportedInterfaceOrientations and setNeedsUpdateOfSupportedInterfaceOrientation method instead of shouldAutorotate and attemptRotationToDeviceOrientation. Above reason, I ...
HyunJin Yoon's user avatar
1 vote
0 answers
219 views

Why viewDidLayoutSubviews and viewWillLayoutSubviews is not getting called in view controller

I have a viewcontoller Called P. Whenever I rotate the screen , viewDidLayoutSubviews is getting called in P. But sometimes it's not getting called in P and I don't why it happens like that and I don'...
Naveen's user avatar
  • 77
1 vote
2 answers
95 views

Swift: Orientation Change with PushViewConteroller

I want to change the orientation of the View When it push from one ViewController to other view controller. Like when it push it should be change into the portrait to landscape. I try to this code ...
Krunal Nagvadia's user avatar
1 vote
0 answers
684 views

Present one view in landscape mode in an otherwise portrait mode app

I have an application (iPhone only) that is portrait-only, but with one exception, a view that must be displayed in landscape mode. I have implemented the technique described in the accepted answer ...
Extra Savoir-Faire's user avatar
1 vote
1 answer
166 views

iOS launch screen will appear in portrait instead of landscape

I am creating an iOS app that will support iPhone and iPad in landscape and portrait orientations. I have setup my launch screen storyboard with an ImageView and that appears correctly in both ...
Don Miguel's user avatar
1 vote
1 answer
90 views

Swift 2: App crashes during rotation

i have reloaded the view that contains table view. But when i keep on rotating the table view frequently the app crashes saying: Terminating app due to uncaught exception 'NSGenericException', reason: ...
jenny sam's user avatar
  • 191
1 vote
1 answer
24 views

How to upload an app without having landscape mode through AppLoader?

I am trying to upload an Universal app which supports only Portrait mode. But while uploading the package through AppLoader, it's want me to enable Landscape mode. But I don't want to support ...
Chowdhury Md Rajib Sarwar's user avatar
1 vote
0 answers
681 views

How to design different layouts for iPad landscape and portrait mode?

I am working on an universal app both for iPad and iPhone devices that supports both landscape and portrait mode. In landscape it has more buttons in addition to what is there in portrait mode. For ...
CuriousDev's user avatar
1 vote
3 answers
1k views

How to set the Airprint orientation to Landscape in swift?

I have to send an Airprint my WebView in landscape mode. But I am getting error while setting up my orientation. I have written this code let printcontroller = UIPrintInteractionController....
Vishwa Raj's user avatar
1 vote
0 answers
168 views

tableView.reloadData() not calling heightForHeaderInSection?

I have a tableView with different heights for the header in the sections. When the orientation changes I want to update the height for the headers. But I've noticed that calling tableView.reloadData()...
Mat0's user avatar
  • 1,175
1 vote
0 answers
73 views

Force Orientation Change Not Always Working

I am having an issue developing my iOS app. I am basically creating a game that will require the user to use the system in portrait orientation at various times, and then transfer over to landscape. ...
Pierce's user avatar
  • 3,158
1 vote
0 answers
116 views

My app display black screen when I rotate from Landscapeleft to LandscapeRight and LandscapeRight to LandscapeLeft

Hi I am new to iOS developer. I have a problem with my app when I rotate LandscapeLeft to LandscapeRight my app display shows black screen. I am using this method for rotate. -(void)...
Giresh's user avatar
  • 153
1 vote
2 answers
852 views

Swift layout for different orientations

How can I make different layouts for different orientations on ios? I try to make an layout in landscape to show 6 picture's in 2 rows. But in portrait I only will show 4 pictures in 2 rows. I ...
Flo's user avatar
  • 1,189
1 vote
0 answers
845 views

Orientation gets change when dismissing a presented view controller

In my app, all view controllers are having Portrait orientation except one. So let's name it, "GameViewController". The GameViewController is sticked to Landscape orientation only. This is how I'm ...
Hemang's user avatar
  • 27k
1 vote
0 answers
404 views

UICollectionView cells not displaying properly when in parent view controller

In an app for iPad, I have a view controller 'A' with a collectionview that displays differently based on the orientation, i.e. vertically scrolling in landscape & horizontally scrolling in ...
King David's user avatar
1 vote
0 answers
34 views

Wrong Orientation with iPhone 6+

I have an application that supports landscape and portrait orientation. However, the root view controller only supports portrait. Here are the two methods that I override for the root view ...
MobileDev's user avatar
  • 3,760
1 vote
0 answers
104 views

Landscape orientation on iPad on app launch

I'm using GPUImage which has class for a preview image. The preview image has to be set to the screen orientation for it to output correctly. Therefore, I need to get the correct orientation on app ...
noobsmcgoobs's user avatar
  • 2,746
1 vote
0 answers
161 views

UIAlertView orientation issue iOS 8 and Above

My app is constructed using portrait mode only, but videos played in landscape orientation. My issue is that while I playing the video any push notification alert comes it shows in portrait mode, I ...
Sudheesh's user avatar
  • 483
1 vote
0 answers
417 views

Forcefully device orientation to Portrait not working in iOS 9

I am using this code snippet to forcefully change the device orientation. It is working fine before iOS 9 it is not working with iOS 9. NSNumber *value = [NSNumber numberWithInt:...
KDeogharkar's user avatar
1 vote
0 answers
261 views

ios: shouldAutorotate of presented view controller is not called

Consider I have three ViewControllers: A,B and C. A will support only LandScapeRight Orientation, B will support all kind of Orientation, C will support only LandScapeRight Orientation. I will ...
rishu1992's user avatar
  • 1,424
1 vote
1 answer
901 views

Portrait view gives the same width as landscape mode in swift

My first view controller is in landscape. When a button is pressed the second vc need to be displayed in portrait mode. I programmatically create the button depending on frame width. But the ...
Lydia's user avatar
  • 2,077
1 vote
1 answer
106 views

Landscape Segue Between Two Portrait UIViewControllers

I am only allowing Device Orientation portrait for UIViewControllers being viewed on iPhones through the following code: - (BOOL)shouldAutorotate { NSString *device = [UIDevice currentDevice]....
Josh Gafni's user avatar
  • 2,871
1 vote
0 answers
379 views

GPUImage captured from camera reports unexpected size

Using the GPUImage camera I set my camera up like this - (void)setupSessionWithImageView:(GPUImageView *)captureView { GPUImageStillCamera *stillCamera = [[GPUImageStillCamera alloc] init]; ...
Nat Osten's user avatar
  • 278
1 vote
0 answers
65 views

Constraints and size classes

I have a view installed for only W:Compact H:Regular size classes. In my UIViewController I have a state that affects constraints of this view (if state is YES I add new constraints with 1000 priority,...
Anton Tyutin's user avatar
1 vote
0 answers
259 views

split view controller's view does not rotate on changing the orientation of the Device

I am a beginner level programmer. Can anybody tell the method using which I can enable the SplitViewController's View to get itself vertical always , whatever be the change in the orientation of the ...
Shubham Ojha's user avatar
1 vote
0 answers
205 views

Changing the position of UIView with out Autolayout

I have designed a UIView class in a nib. On a button Click I display the UIView as a customised pop up with animation. Here is the code: UIView* pickerView = [dataLoaderView newAnimationCurvePicker:...
Icoder's user avatar
  • 330
1 vote
0 answers
270 views

Custom Overlay UIImagePickerController Landscape mode issue

I have a UIImagePickerController with custom overlay. When I open the camera in landscape orientation in iPhone, the camera view is not displayed properly. I don't want the camera view in landscape ...
Sheik_101's user avatar
  • 770
1 vote
0 answers
77 views

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 ...
WMZ's user avatar
  • 73
1 vote
0 answers
208 views

After orientation change Presented Controller position changes back in iOS 8

I am implementing presentation of UIViewController (modal) on top of another UIViewController. I want the presentedController to be at particular Y position instead of center of the parent controller. ...
Srivathsa's user avatar
  • 616
1 vote
1 answer
309 views

UIWindow is appearing in Portrait in a Landscape only app

- (UIWindow *)overlayWindow { if (!_overlayWindow) { _overlayWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; [_overlayWindow makeKeyAndVisible]; ...
soleil's user avatar
  • 12.7k
1 vote
0 answers
705 views

supportedInterfaceOrientations is not working as expected in Swift

I want my application to run in Landscape left and right modes. Below is my code. I created an extension for UIViewController and written the below code in that extension files. func shouldAutorotate(...
Coder's user avatar
  • 1,681
1 vote
0 answers
109 views

how to show view when keyboard appears in landscape

I have a viewcontroller which has a username text field,pwd text field and a login button. When i am in portrait mode i am not making any changes to the frame of viewcontroller's view,but when the ...
BoredToDeath's user avatar
1 vote
1 answer
293 views

iPhone 6 plus block landscape orientation

I'm developing an iOS application which runs on iPhone and iPad. For iPhone it takes only portrait orientation, for iPad only landscape. In info file all types of orientation are turned on. The ...
Rostyslav Druzhchenko's user avatar
1 vote
1 answer
265 views

change custom label and button to landscape in xcode 5

i create a custom button and label in portrait mode and landscape mode separately as below: - (BOOL)shouldAutorotate { UIInterfaceOrientation orientation = [[UIApplication sharedApplication] ...
Madhu M's user avatar
  • 41
1 vote
0 answers
267 views

How update update UIViewController with call supportedInterfaceOrientations and update rotation

I have a problem. I show UIViewContoller like modal and UIViewContoller have UIWebView. This UIWebView should show two different html page. One page have size 1024*768 and another have 768*1024. And I ...
Alexander's user avatar
  • 637
1 vote
0 answers
378 views

updateViewConstraints and orientation handling

I've some questions about the updateViewConstraints method: Why is updateViewConstraints called twice at the loading of the view controller? And why is it called when the view controlle is dismissed?...
testing's user avatar
  • 20k
1 vote
0 answers
164 views

Detecting touch events during the device rotation transition

In iOS 8, touch events are not detected while the transition to the trait collection happens. Our app gets user touch input regularly, but some touches are skipped during the device rotation. - (void)...
Dohyeon Kim's user avatar
1 vote
0 answers
53 views

Prevent rotation of ViewControllers in navigation stack

My navigation stack looks like this: [UINavigationController] ---> [ViewController1] ---> [ViewController2] ... I want to lock ViewController1 in portrait orientation but ViewController2 can ...
Pham Hoan's user avatar
  • 2,127
1 vote
1 answer
528 views

Change UIImage View on orientation change

I am trying to change the UIImageView image when the device goes into landscape orientation. I have the orientation working but am rather new to Objective-C and finding it difficult to change the ...
Galactic Ranger's user avatar
1 vote
1 answer
628 views

Force ViewController in UITabBarController to be landscape in iOS 7

Ok, I am getting really desperate on it, trying every possibility but always ending up in the same (frustrating ) place. My setup is quite simple, I have an iPad application that uses a ...
nburk's user avatar
  • 22.6k
1 vote
1 answer
138 views

iOS Rotation with UITabBarController - switch controller out completely and smoothly

I have an iOS application and the main entry point into the storyboard is a Tabbar with with tabs. I want to support rotation but in landscape mode, each tab will look drastically different to the ...
chrislhardin's user avatar
  • 1,735
1 vote
1 answer
276 views

Rotate only subview of a uiviewcontroller

I read up other questions and it isn't very clear, as to what I could do about this problem. Decided to ask anyway. So I have a UIViewController, wherein I block auto-rotation. I bring up one of ...
esh's user avatar
  • 2,862

1
2
3 4 5
7