# Steps to reproduce
1. Create Xamarin Forms project using Xamarin.Forms pre-22.214.171.124-pre6.
2. Create either a custom renderer or Dependency service that presents a UIImagePickerController on the foremost presented UIViewController.
3. Add code to invoke step 2 from PCL shared project.
4. Run (I tested on an iPad, and simulator is unavailable for this test)
# Expected behavior
In the stable 126.96.36.199 the camera feed is displayed with a corresponding overlay.
# Actual behavior
Blank white screen.
# Supplemental info (logs, images, videos)
# Test environment (full version information)
Visual Studio 2017 Latest Xamarin packages on both windows and mac machines.
Microsoft Visual Studio Professional 2017
Version 15.0.26228.9 D15RTWSVC
Microsoft .NET Framework
Installed Version: Professional
Visual Studio Tools for Universal Windows Apps 15.0.26228.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Xamarin 188.8.131.524 (73f58d6)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 184.108.40.206 (9578cdc)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 10.4.0.123 (35d1ccd)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Thank you for filing this report!
This might be related: https://github.com/jamesmontemagno/MediaPlugin/issues/186
Are you invoking the UIImagePickerController from an ActionSheet?
You are totally correct, it is the same issue. I use the following code to present the UIImagePickerController (inside a custom renderer):
protected override void OnElementChanged(ElementChangedEventArgs<CameraView> e)
if (Control == null)
view = e.NewElement;
currentUIViewController = GetCurrentUIController();
private UIViewController GetCurrentUIController()
UIViewController currentController = UIApplication.SharedApplication.KeyWindow.RootViewController;
while (currentController.PresentedViewController != null)
currentController = currentController.PresentedViewController;
Created attachment 21079 [details]
I'm attaching the Media Plugin sample as a repro project. I've also opened a PR for a fix: https://github.com/xamarin/Xamarin.Forms/pull/848
### Steps to Reproduce
1. Run the attached iOS project
2. Press "Pick Photo"
3. Press "Okay" in the alert
### Expected Results
The UIImagePickerController will be presented
### Actual Results
The UIImagePickerController is not presented
Should be fixed on 2.3.5-pre1
Verified this bug on Simulator & device for xamarin.forms 220.127.116.116-pre6.
For both its working as expected.
gist link: https://gist.github.com/nehaKh/ea8a3b090d27c83f35bccf0d529bbeed
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
Our sincere thanks to everyone who has contributed on this bug tracker
over the years. Thanks also for your understanding as we make these
adjustments and improvements for the future.