PNG图片转UIImage
let image = UIImage(named :"PNG图片名.png")
UIImage转Data
let data = UIImagePNGRepresentation( image )
Data转UIImage
let image = UIImage(data : data)
PNG图片转UIImage
let image = UIImage(named :"PNG图片名.png")
UIImage转Data
let data = UIImagePNGRepresentation( image )
Data转UIImage
let image = UIImage(data : data)