Loading/Downloading image from URL on Swift

I’d like to load an image from a URL in my application, so I first tried with Objective-C and it worked, however, with Swift, I’ve a compilation error: ‘imageWithData’ is unavailable: use object construction ‘UIImage(data:)’ My function: @IBOutlet var imageView : UIImageView override func viewDidLoad() { super.viewDidLoad() var url:NSURL = NSURL.URLWithString(“http://myURL/ios8.png”) var data:NSData = NSData.dataWithContentsOfURL(url, … Read more