Skip to main content
2 votes
1 answer
1k views

I have an example in Swift language: guard let windowScene = view.window?.windowScene else { return } windowScene.requestGeometryUpdate(.iOS(interfaceOrientations: .portrait)) { error in } I ...
Fleeploed's user avatar
1 vote
0 answers
715 views

I know that I should use supportedInterfaceOrientations and setNeedsUpdateOfSupportedInterfaceOrientation method instead of shouldAutorotate and attemptRotationToDeviceOrientation. Above reason, I ...
HyunJin Yoon's user avatar
3 votes
1 answer
2k views

I am have trouble trying to update our app from relying on "shouldAutorotate". We are using Objective C. Currently, in iOS15, the "shouldAutorotate" updates the location and size ...
jsdigital's user avatar
25 votes
8 answers
23k views

According to the iOS & iPadOS 16 Beta 3 Release Notes:- Attempting to set an orientation on UIDevice via setValue:forKey: isn’t supported and no longer works. Instead, they say use: ...
Abhayam's user avatar
  • 377
5 votes
2 answers
7k views

I have been using the following to detect the current interface orientation in iOS 14/15: UIApplication.shared.windows.first!.windowScene!.interfaceOrientation Now in iOS 16 Beta (1 and 2), it is ...
Gizmodo's user avatar
  • 3,042
0 votes
1 answer
471 views

I am working on remastering Swift and UIKit after a long time. WorkFlow: I have created a ViewController with a UICollectionView aligning its centers in both X and Y axis and Proportional Width and ...
Nishanth Vemula's user avatar
1 vote
1 answer
1k views

When I rotate from Portrait to Landscape on my phone web view changes its scroll automatically almost to the bottom of content on the page. I've tried reloadInputViews also this code does not work as ...
Oleksandr Matrosov's user avatar
0 votes
0 answers
52 views

I have set globally portrait interface orientation in target settings. But I would like to have all possible interface orientation on a specific view controller only. Is there a way to do it. I don't ...
Oleksandr Matrosov's user avatar
1 vote
1 answer
70 views

My iPad application is in Landscape. From ViewController1 I presented ViewController2. From there when camera is opened with UIImagePicker (while keeping the device in portrait mode), ViewController2 ...
Sandeep's user avatar
  • 65
0 votes
1 answer
531 views

As a developer, I know the list of orientations added in the Project settings/plist for my iOS app, but I would like to know the list of supported orientations from the code. For eg., one of the 3rd ...
user2431170's user avatar
0 votes
1 answer
1k views

My application was only in portrait mode, but I need a controller to also support landscape. Here my info.plist: <key>UISupportedInterfaceOrientations</key> <array> &...
Mickael Belhassen's user avatar
0 votes
0 answers
141 views

This is regarding image orientation when captured with the device rotation lock on.' self.photoOutput.connection(with: AVMediaType.video)?.videoOrientation = self.stillImageOrientation I have self....
Gizmodo's user avatar
  • 3,042
0 votes
1 answer
366 views

So I have a UIPageViewController where I want to implement the spineLocation to be .mid if the device is in landscape and .min for portrait, therefore showing two controllers in landscape and one in ...
Shadi Habiballah's user avatar
0 votes
0 answers
257 views

I am using SwiftUI and Swift in my application. Few screens are expected to support both landscape or portrait orientation. In Swift, i am using below code to support landscape and portrait ...
cto platform's user avatar
0 votes
1 answer
547 views

The problem I am having is a bit strange and I can't seem to find any good solutions out there. So I have two UIViewControllers, one is allowed to take all orientations, another can only be viewed in ...
IntegerOverlord's user avatar

15 30 50 per page
1
2 3 4 5
65