I have an array of images and i want to covert them all to an anyObject object. How do i do this all at the same time and not one array index at a time?
Code...
var imageArray:[UIImage] = [Image1, Image2, Image3]
let convertImage:[AnyObject] = UIImagePNGRepresentation(imageArray)
imageArray.map { UIImagePNGRepresentation($0) as AnyObject }