Bug 37596 - No IUIImagePickerControllerDelegate interface implementation in UIImagePickerController class
Summary: No IUIImagePickerControllerDelegate interface implementation in UIImagePicker...
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.4 (iOS 9.2)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
: 37597 ()
Depends on:
Reported: 2016-01-11 23:57 UTC by colinc86
Modified: 2016-01-13 09:22 UTC (History)
4 users (show)

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:

Description colinc86 2016-01-11 23:57:59 UTC
The UIImagePickerController class has the UIImagePickerControllerDelegate property ImagePickerControllerDelegate, but no interface property for IUIImagePickerControllerDelegate nor a way to initialize the controller with such a property.

I.e. A view controller who declares themselves as a IUIImagePickerControllerDelegate has no way to receive objective-c delegate calls. A workaround is to use the events Cancelled, FinishedPickingMedia, and FinishedPickingImage (which cross-references another bug, because FinishedPickingImage is never called).
Comment 1 Rolf Bjarne Kvinge [MSFT] 2016-01-12 12:39:23 UTC

As a workaround you can assign to the Delegate property (the ImagePickerControllerDelegate and NavigationControllerDelegate properties are just wrappers around the Delegate property anyway).

maccore/master: b2383a4eeebc533159c5a1e2745db129a03a8a17
Comment 2 Rolf Bjarne Kvinge [MSFT] 2016-01-13 09:22:40 UTC
*** Bug 37597 has been marked as a duplicate of this bug. ***