UISplitViewController asks for photo permission when it rotates - ios

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.

Related

Xcode 7.3.1 view controller in storyboard disappeared

I'm making an iOS app using Bluetooth. The app is supposed to show a list of Bluetooth device when the button "Bluetooth" is clicked. The list is a tableView shown as a popOver view controller.
When I turn on my computer the next day, the popOver view controller disappeared, but you can still see it in the list on the left side(Bluetooth device scene), and it is there when running it in simulator. But it is not visible or clickable in the interface builder.
I did nothing but closed my laptop, and opened it the next day. It's not that I'm using the wrong w/h size. I've tried that. Anyone know what's going on? Thanks a lot.
Screen shot of my storyboard

iPhone camera landscape orientation issue

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

iOS sharing resetting app orientation

The app has portrait as default orientation within Unity3D. Using the app, nothing goes wrong and rotating the device does not affect the GUI and others.
Using native sharing we first get the sharing window with the "More..." button.
If the user presses the "More..." button while holding the device as horizontally, the new window shows as landscape and the whole app rotates behind. Doing the invert process totally screws the app. We are using Vuforia and the camera feed goes upside down before turning black.
The "More..." button seem to call for a new activity that seem to ask for the current rotation and (for some unknown reasons) also would send a message to the app about the new rotation.
Can I prevent that?

iOS taking a screen capture of your app before going into background when orientation changes

I know this question was asked before, however I need a more specific answer regarding orientation changes,
When i add the view that hides the sensitive data to the app, press the home button, and then change the iPad orientation and go back to the app, the view stays at portrait frame which is not the correct since I changed the orientation and it doesn't cover the entire screen.
Anyone knows how to handle this?

iOS Orientation adapts to unapproved device orientation after Camera dismissed

I am currently writing an iOS app in which have the acceptable device orientations set to Landscape Right and Landscape Left, and in all of my view controllers, I’m returning only those two in the supportedInterfaceOrientations method.
However, if the user uses the in-app camera functionality (which is implemented via UIImagePickerController presented modally in full screen) and rotates the device to Portrait orientation to take a picture, the camera rotates to portrait mode (which is fine), and if the user clicks "Use Photo", when the modal view is dismissed, the view from which the camera was launched is somehow now in portrait mode (which is not fine).
After the camera view has been dismissed, the view controller from which it was launched has UIDeviceOrientationIsPortrait set to true. I am wondering how it ended up in this orientation, and how when a picture is taken, I can ensure that the presenting view controller remains in a landscape orientation. Any help is greatly appreciated!
I am currently writing an iOS app in which have the acceptable device
orientations set to Landscape Right and Landscape Left, and in all of
my view controllers, I’m returning only those two in the
supportedInterfaceOrientations method.
In iOS 6 and later, your app supports the interface orientations defined in your app’s Info.plist file
Have you tried setting it here? Then see if the problem still occurs.
Also, if this doesn't work, try setting the supportedInterfaceOrientations values in the viewWillAppear method of the ViewController that launched UIImagePicker?

Resources