I'm using Xamarin.ios
to develop my app and need solution to one problem. I want to get the name of the image picked from the iPhone library, im using UIimagePickerController
for picking the image. can anyone come up with the solution please.
public void Handle_FinishedPickingMedia (object sender, UIImagePickerMediaPickedEventArgs e)
{
Console.WriteLine("Reference URL: [" + UIImagePickerController.ReferenceUrl + "]");
NSUrl referenceURL = e.Info[UIImagePickerController.ReferenceUrl] as NSUrl;
Console.WriteLine ("" + referenceURL.LastPathComponent);
}
form Objective-C i have tried this code to get image name, but doesn't work!