如何在 swift 中找到 UIImage 的 name/title?

How to find the name/title of a UIImage in swift?

请帮忙找出存储在Phone的图片库中的图片名称。

这是我试过的代码:

    let x = self.imageView.accessibilityLabel
    println(x)

遗憾的是,UIImage 并未内置该功能,因为图像并不总是从文件中加载。但是,您可以创建自定义 UIImageView 子类以满足您的需要。