In Xcode 6 beta 7 I'm not able to put an UIImage in AnyObject Array:
var objects = [pizzaImage.image, title, ingredients.text]
error:
Cannot convert the expression's type 'Array' to type 'ArrayLiteralConvertible'
no problems in beta 6
EDIT this is the complete code, tried everything, but stil no luck:
var objects = [pizzaImage.image!, title, ingredients.text!]]
var act = UIActivityViewController(activityItems: objects, applicationActivities: nil)
self.presentViewController(act, animated: true, completion: nil)
ingredients.texthas to be unwrapped as well.