如何返回一个照片文件名字符串?

时间:2016-01-26 09:14:35

标签: ios

我正在使用相机或库应用程序来拍摄/选择图像

例如

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设置断点并下台,我可以获取图片属性,但我不知道如何获取文件名。

0 个答案:

没有答案