Bug 56861 - PresentModalViewController APi is not working
Summary: PresentModalViewController APi is not working
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.5
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-05-26 02:41 UTC by arun
Modified: 2017-05-26 17:13 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

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.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description arun 2017-05-26 02:41:11 UTC
UIApplication.SharedApplication.KeyWindow.RootViewController.PresentModalViewController(imagePicker, true); 
is not working.

sample project to reproduce the issue is at 
https://github.com/arunpurang/Xamarin

In the TestGallaryPage.cs uncomment line #9 and it does not work.
and comment out line #9 and it works. 
It has wasted lot of my time. 
Please try to fix it as soon as possible as I am on tight deadline.
Comment 1 Jimmy [MSFT] 2017-05-26 17:13:39 UTC
This appears to be the same issue as bug 54153 which is fixed in 2.3.5.

I ran the TestGallery project form your GitHub with Forms 2.3.5-pre3 and the modal was presented when line #9 was uncommented.