注册 登录
  • 欢迎访问Sharezer Blog

标签:Swift

IOS

保存NSImage到文件

@IBAction func SaveImage(_ sender: Any) { if resuleImage.image != nil { let savePanel = NSSavePanel.init() savePanel.allowedFileTypes = [(captureFilePath?.pathExtension)!] savePanel.message = "Choose the path to save the image" savePanel.isExtensionHidden = false ……继续阅读 »

sharezer 2年前 (2016-12-13) 492浏览 0评论 0个赞