New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
picturechooser always show in portrait orientation #761
Comments
Most likely not as it is launching external apps. |
Sorry, I don't understand. Can you be more details? |
For instance the Droid plugin uses an Touch uses etc. |
Below content comes from Apple's UIImagePickerController doc, is this plugin missing to use a Popover with UIImagePickerController for ipad app? "On iPad, the correct way to present an image picker depends on its source type, as summarized in this table: Camera Photo Library Saved Photos Album The table indicates that on iPad, if you specify a source type of UIImagePickerControllerSourceTypePhotoLibrary or UIImagePickerControllerSourceTypeSavedPhotosAlbum, you must present the image picker using a popover controller, as described in “Presenting and Dismissing the Popover” in UIPopoverController Class Reference. If you attempt to present an image picker modally (full-screen) for choosing among saved pictures and movies, the system raises an exception. |
I have a landscape iOS application for iPad and when I try to use the ChoosePictureFromLibrary method it always crashes with the following exception...
I guess it is related to the jamesatgithub's comment about popovers and modality :( |
Confirmed... it has to be in popover to work in landscape mode ;) |
@PenaPP Can you make a PR to fix this? |
@martijn00 I guess I don't have any. I solved that by changing my code ;) |
Hello, Is anybody is able to take time to explain me what code is needed to fix this issue or fix the bug inside of the plugin plz ??? Thank you |
@Jerome2606 Is this on iPad or what? Popovers are only necessary on iPad, and we currently don't have a way of passing along one of those to present the One thing that puzzles me is how you can be stuck with this for 3 days, when you always had the possibility of showing your own |
Yes it is for ipad. What I mean for 3 days is that I'm starting with Xamarin and iOS development and was not able to know why suddenly my app was crashing. It took me a while to find these ways to get crash info: After that I get the error and this guides me to this thread. So basically the solution we start to implement is like you said implement our own UIImagePickerController but at this point I'm not able to understand how to implement "popover" to make it working in landscape so for now we force user to use portrait and that should be only a "workaround". I would like to get some existing code like @PenaPP did on his side. |
Thank you, I take a look on that. |
In my ipad project , i use the picturechooser to select an image. my app ui orientation is landscape,but picturechooser always show in portrait orientation can the picturechooser open by the landscape orientation way?
The text was updated successfully, but these errors were encountered: