导入 import MobileCoreServices 直接引用下面这个代码 let imgs = kUTTypeImage as? String; print("image = \(imgs)");