NSData

// let image = UIImage.imageViewColor(color: UIColor.lightGray)
// let data:NSData = UIImagePNGRepresentation(image)! as NSData
// data.write(toFile: "/Users/luopengfei/Desktop/lightgray.png", atomically: true)

你可能感兴趣的:(NSData)