971 questions
0
votes
0
answers
77
views
Presenting a rotating, sheet-style modal on top of another view controller locked in portrait orientation
I have an app whose main view controller (call it VC-A) is locked in portrait orientation. I would like to present a sheet-style modal (call it VC-B) over top of it, allowing the modal to rotate ...
1
vote
0
answers
691
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 ...
25
votes
8
answers
23k
views
is Force View Controller Orientation working in iOS 16 beta
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: ...
0
votes
1
answer
462
views
Swift 5 UICollectionViewCell Autolayout constraints
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 ...
0
votes
0
answers
50
views
How to enable rotation interface orientation on a specific screen
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 ...
0
votes
1
answer
504
views
How do I know/get the list of supported orientations for my iOS app?
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 ...
0
votes
0
answers
137
views
Capture Image Orientation Issue
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....
0
votes
0
answers
252
views
Stop few screen landscape orientation in Swiftui
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 ...
1
vote
1
answer
74
views
ios app run on ipad, launchscreen.storyboard Rotate screen issue
iOS app ,set to allow only vertical screen, when running on iPad, when iPad is in horizontal screen,display is incomplete.
1
vote
0
answers
313
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'...
0
votes
1
answer
301
views
Image assets how to specify different images for portrait and landscape
xcode project has image assets we can specify image for both iPhone and ipad for a single image name
Is it possible I can specify image for portrait and landscape for iPhone and iPad separately
Any ...
0
votes
1
answer
299
views
iOS 13 orientation changed forcefully
I have an app and it's working fine as expected in iOS 12 and below. I am only supporting portrait mode in my app. Now in iOS 13 what happens is If I open camera to capture video and rotates the ...
0
votes
1
answer
1k
views
How can I turn my flutter app left or right of landscape based on user phone orientation?
I made my application go into landscape mode when using
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
]);
But I cannot make ...
-1
votes
2
answers
176
views
Device Orientation not removed after Closing Video Player
This is what I am facing issue.
My whole app is in Portrait Mode When a video plays in full screen and user rotate the device its default behavior rotates to landscape mode on clicking the screen/...
3
votes
2
answers
92
views
Complex Multi-Device Orientation Handling
I have a universal application running both on iPads and iPhones. The application starts with a .xib file, built in interface builder, which acts as the launch image. Once the app launched, it ...
5
votes
0
answers
822
views
iOS ARKit app: How do I rotate the UI (screen) without rotating the camera view inside?
I'm trying to make an iOS app featuring some AR experience using ARKit. The app now has a start-up view with a "start" button (which shows first after the app is just launched) and a AR View (which ...
1
vote
2
answers
100
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 ...
0
votes
1
answer
934
views
How to get and use UIInterfaceOrientation items from info.plist?
I would like get the item0 of the supported interface orientations in my info.plist.
In order to have something like this:
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
NSArray ...
-1
votes
1
answer
831
views
How do I get an output for UIInterfaceOrientation?
I would like to be able to get the orientation of my iOS application's view using UIInterfaceOrientation.
This is different to UIDevice.current.orientation as that returns how the device should ...
1
vote
1
answer
181
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 ...
0
votes
1
answer
544
views
iOS: Handle Orientation change without enabling landscape mode on View Controller
My Swift app's View Controller is fixed to portrait mode at all times, but the View Controller has an embedded AV video player (added as a child view controller) which should switch to fullscreen mode ...
0
votes
1
answer
549
views
UIView.isHidden not working when changing orientation using viewWillTransition
I'm trying to change orientation with just one view, the rest are anchored to Portrait. I've set a method in my AppDelegate as below
func application(_ application: UIApplication, ...
2
votes
2
answers
1k
views
AVPlayerViewController messes up underlying modal view controller in popup on iOS10
I have an app (supported interface orientation - portrait only) with the next hierarchy of modally presented view controllers:
A -> B -> AVP
Where A is a view controller sitting in tab bar ...
0
votes
0
answers
447
views
Swift: How to make a custom view update elements to its size
I have a custom view using the CVCalendar pod (https://github.com/CVCalendar/CVCalendar) that lays out dates within a UIView (calendarView). This works as expected when the view is loaded either in ...
1
vote
1
answer
101
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: ...