我正在使用相机或库应用程序来拍摄/选择图像
例如
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) {
// User has selected an image
// To dismiss the image picker
self.dismissViewControllerAnimated(true, completion: nil)
// Select the Image of interest
// retrieve the object via key from documentation
self.imageView.image = info[UIImagePickerControllerOriginalImage] as? UIImage
}
如果我在self.imageView.image
设置断点并下台,我可以获取图片属性,但我不知道如何获取文件名。