I’m trying to work out how to use UIImagePickerController to select a picture from the user’s library, to see if it works better than Xojo’s ImagePicker implementation.
In the IOSKit example app, there is an example of video recording, but I cannot work out how to modify it to return a simple image
I tried this
var picker as UIKit.UIImagePickerController = new UIKit.UIImagePickerController
picker.sourceType = UIKit.UIImagePickerController.Source.PhotoLibrary
picker.mediaTypes = Foundation.NSArray.CreateWithObject(new NSString(UIKit.UIImagePickerController.kUTTypeImage))
picker.PresentInView(Canvaspicker)
That last line wants an iOSView… most objects in my project are Mobilennnn objects
I added an object and set it’s type to be iOSView, but I cannot get a picker to show up.
Does anyone have a worked example I could follow?
1 post - 1 participant