如何获取UIImage中使用的图像名称? [英] How to get Image Name used in an UIImage?

查看:124
本文介绍了如何获取UIImage中使用的图像名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用UIImage,其中我有一个Image,我想知道图像的名称。

I am using an UIImage, in which I have an Image, and I want to know the name of image.

推荐答案

该功能不是内置于 UIImage ,因为图像并非始终从文件加载。但是,您可以创建自定义 UIImageView 子类以满足您的需求。

That functionality is not built-in to UIImage because images are not always loaded from files. However, you could create a custom UIImageView subclass to fit your needs.

这篇关于如何获取UIImage中使用的图像名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆