iPhone camera landscape orientation issue - ios

I have scenario in which the camera is to be forced to be in landscape when ever you want click . I tried various things but i am not able to make it landscape . In one forum i even read that doing so may lead to app rejection . Is it so? if not can someone give me the solution for the same ?

Which model of the iphone are you using? Do you by chance have the rotation lock enabled? Is this a third party app or the official iphone camera app? sometimes if you use a third party app, they don't always work correctly with rotation settings.

Hey i found one solution for the same through which we can give an impression to user that camera is presented in landscape mode and user will take image in landscape . We need to add a custom view (a bar giving an impression that its a landscape view) on the camera with button having click functionality hiding the default controllers of camera . See attached screenshot . Output of solution i found

Related

Ask permission to unlock screen orientation in Swift

I'm working on a photo capturing application.
My app only supports portrait mode and I have to rotate landscape images to rotate them for the portrait mode. For example I want to rotate the photo 90 degrees right if it was captured in landscapeRight.
But if user device is in "Lock screen orientation" mode, I can't get the correct device orientation value with UIDevice.current.orientation if user is trying to take a landscape positioned photo. It always returns "portrait" value of course due to the "lock screen oritentation".
I want to ask permission to user for unlocking screen orientation with like "This application wants to unlock your screen orientation" message. Is it possible to add my info.plist to add a permission request for unlocking screen orientation? And if yes, which permission do I have to add in my info.plist?
Thanks in advance.
I concur you can't change the orientation properties. All those properties (in your project page) do is to enable state variables and notifications from which you can animate the orientation of your UI. So perhaps a hacky solution would be to look at using gyroscope APIs, and to make a small algorithm based on that to detect device rotation. It would essentially come down to building logic similar to a Leveling App. https://developer.apple.com/documentation/coremotion/cmmotionmanager

Force Rotate iOS Even When Device's Portrait Orientation Lock is ON

My app needs to somehow mimic the iOS original Camera App, that even the device's AUTOROTATE is locked, the ViewController or specifically the AVCaptureVideoPreviewLayer will rotate.
So far, what I did to my project is this: Check the Landscape (right and left) in Project Properties/Settings, and then tweak each View Controllers' shouldAutorotate.
Everything is fine using this technique, until the user lock his device autorotate function (in iPAD this is a button at the side of the device, in iPhone this can be found in the settings from below the screen).
I couldn't find any answered related question on stackoverflow, so I asked.
So after few days, I have solved the problem!!! I'm still wondering though what was the reason behind in down voting my question. I have found this tutorial/blog:
Detect Device Rotation Even When Rotation Lock Is ON
So basically, the alternative way is to use CoreMotion. I hope someone who is having the same question in mind finds this answer. Cheers!

How to implement Split Screen Multitasking on iPad using Third party apps?

I tried to implement the Multitasking feature Apple provided using AIR application, but I seem to miss something.
I did the following as apple recommended:
Compiled the app with iOS9 SDK.
All orientation implemented.
Storyboard added.
Still I do not see the vertical bar that divides the two app's for multitasking.
Let me know if you implemented this successfully in any third party apps?
All 3 listed steps are correct. Please also make sure Requires Full Screen is set to NO. It works perfectly for me.
Please let me know if you (or anyone else) still have trouble with Split View support.
What iPad are you using to test your app? Not all iPads support this behavior. This table shows which iPads support Slide Over, Picture in Picture and Split View:
Documentation from Apple for more information.
By the way how did you manage to use launch screen storyboard with Adobe AIR application?
Split screen wasn't working for me because even though I had a Storyboard, I wasn't using it. Make sure your Launch Screen File is set, and your Launch Images Source is blank.
Check off Portrait, Upside Down, Landscape Left, and Landscape Right under Deployment Info. Also make sure that Requires full screen is not checked off.
Finally you should double check that your Info.plist is correct. UIRequiresFullScreen should be NO. Supported interface orientations and Supported interface orientations (iPad) should have all 4 orientations.

UISplitViewController asks for photo permission when it rotates

I have a project with a UITabBarViewController and a UISplitViewController as its first tab. The master UITableViewController can display a thumbnail if there is one but it's supposed to be set up so that it won't ask permission on this screen. The third tab is a photos screen that does ask permission as expected and allows the user to establish thumbnails for the first tab.
The app will never ask for photo permission on first launch when displaying the split view regardless of whether it is portrait or landscape and if it is not rotated, the photo tab will ask permission as expected. However, if the initial split view is rotated, iOS will ask for photo permission during rotation.
I don't have any code dealing with rotation and all other rotation and navigation that I have found behaves as expected. I am using Swift, Xcode 6.1 and iOS 8.1 both in the simulator and on a device.
When rotating, the app was calling viewDidLoad in the Photo tab. I moved the code that triggered the permission alert from viewDidLoad to viewWillAppear and solved the problem.

Screen Rotation in iOS

I need some help regarding "Screen Rotation". I am creating this application in Landscape mode but I also want to be able to turn the iPad to Portrait mode. I am trying something different and making the application inside the viewcontroller. Basically copy and paste a view controller over and over. My issue is that even after I select, "Portrait" to be the ViewControllers Mode it still changed to landscape when i the iPad is turned to Landscape mode. I hope this made sense. Any answers are greatly appreciated!
If you're setting the supported orientation modes under the 'Deployment Info' section of your project file in Xcode, might be worth double checking that you are setting the modes for iPad rather than iPhone if you setup your project as a Universal app.

Resources