请问swift怎么获取显示在button控件上的图片的名称?
文件名吗?这个需求是什么?
得不到“文件”名称,不过你可以得到button的图片object。
let image = yourButton.currentImage