uiinterfaceorientation Questions

2

Solved

If I add a popover with access to my photo gallery from the iPad the system always crash with the following message: Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrien...

18

Solved

I ran the following code in both iOS 7 and iOS 8: UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]; BOOL landscape = (orientation == UIInterfaceOrienta...
Stepp asked 10/6, 2014 at 20:35

3

Try as I might, I can't solve a UISegmentedControl bug for an iOS7 iPhone app. When I create the segmented control, I use this code: NSArray *segmentedControlItemArray = [NSArray arrayWithObjects...
Sodomy asked 8/11, 2013 at 20:52

1

Solved

func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> UIInterfaceOrientationMask { return UIInterfaceOrientationMask.Portrait.rawValue.hashV...
Chancechancel asked 17/9, 2015 at 15:19

3

Solved

a noob question here. i detect the orientation with: UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation]; all is fine and dandy and I reposition my text fields and labels...
Postilion asked 12/12, 2010 at 18:36

2

I have a navigation controller holding a view controller that only supports the portrait orientation: This presents a full-screen view controller that only supports landscape: Unfortunately ...
Porphyrin asked 5/8, 2015 at 11:32

1

In my iPhone app I have a view that I want to show only in portrait mode. When navigating to that view it should be automatically displayed in portrait view. When navigating away, the orientation s...
Culdesac asked 2/7, 2015 at 21:55

2

Solved

I've implemented the code below to change the orientation of an AVCaptureVideoSession based upon the UIInterfaceOrientation: - (AVCaptureVideoOrientation)interfaceOrientationToVideoOrientation:(UI...

8

Solved

I have an iPhone application (iOS6+) that supports all interface orientations. However, only landscape orientation should be supported when an MPMoviePlayerController is playing a video fullscreen....

1

Solved

Edit: It has been suggested this post is a duplicate, which is not the case as the black bars are not initially present an an affine transformation does not remedy the problem. I run this on an iP...

4

I have a big problem with my app and iOS 8.3. I have many crashes with always the same error: Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Sup...
Antimacassar asked 14/4, 2015 at 13:47

4

Solved

In Xcode 6 Beta 7 and all versions before it, I had a collection view that would update its constraints on its cells when an iPad would rotate between landscape and portrait. Now, it doesn't update...

3

Solved

ADDED: I see that my question is viewed often without upvotes so I decided that you guys do not get what you search. Redirecting you to question that has really nice answer about How to handle orie...
Suite asked 8/10, 2012 at 9:15

8

my app up to iOS 7 works correctly. I tried it today with Xcode 6 and when I run it I have a nasty surprise :(: You can see that Xcode now draw my viewController as if it is in portrait mode but ...
Poulard asked 15/9, 2014 at 17:27

4

Solved

I have used this code to get screen width and screen height, float scaleFactor = [[UIScreen mainScreen] scale]; CGRect screen = [[UIScreen mainScreen] bounds]; CGFloat widthInPixel = screen.siz...

5

Solved

I am building a ipad application. when the applications starts i show it in landscape Right mode. But as soon as the application starts I get this message Two-stage rotation animation is deprecat...
Oversubscribe asked 14/6, 2012 at 6:26

4

Solved

I am using an UIImagePickerController within an UIPopoverController which is working perfectly with iOS6. With iOS 7 the "preview" image which is shown to capture the image is rotated, but if I tak...

2

Solved

I'm using the VFR PDF viewer library in my app, where I present it thus: ReaderDocument *document = [ReaderDocument withDocumentFilePath:pdfFile password:nil]; ReaderViewController *vc = [[ReaderV...
Cameral asked 10/11, 2014 at 10:6

3

Solved

My app is a UITabBarController --> UINavigationController --> UITableViewController --> UIViewController. I want to do 2 things: Prevent my tableview from rotating, I want it to always stay port...
Paucker asked 12/12, 2013 at 14:35

2

Solved

I am building an app for iPhone that will have only 1 landscape view, and so i want to block landscape for all other, i have tried this: -(NSUInteger)supportedInterfaceOrientations { return UIIn...
Loggia asked 28/10, 2014 at 15:4

2

My app has one view controller that cannot change orientation. Think of it as a playing field that needs to stay fixed in place. I now want to put up a UIActionSheet, but given the way the user is...
Sporophyte asked 11/11, 2011 at 21:40

2

Solved

I've create simple module where I add subview to UIWindow. In simulator ios 7(Xcode 5.1.1) I have printed self.windows and I get: <UIWindow: 0x8db1670; frame = (0 0; 768 1024); autoresize = W+H...
Odessaodetta asked 9/9, 2014 at 9:59

0

I have an app that is designed to run Landscape. It is a Cocos2D app. It works fine until I add another window (such as for displaying ads) or if I display a modal view controller. When I do that...
Flanker asked 3/10, 2014 at 17:54

1

Solved

I am using Xcode 5.0.2 and getting the following warning when trying to compile my objective C code: Implicit conversion from enumeration type 'enum UIDeviceOrientation' to different enumeratio...

3

Solved

I have a UIView thats inside a navigation controller, I am trying to prevent this view from going into Landscape however the method I am trying to use never fires.. code is below any help would be ...
Anew asked 11/7, 2012 at 21:27

© 2022 - 2024 — McMap. All rights reserved.