[NSBlockOperation addExecutionBlock:]: blocks cannot be added after the operation has started executing or finished
I am trying to start again NSBlockOperation after completing or canceling it, but getting an error? Any one have any idea where is mistake? Thanks let imageURLs = ["http://www.planetware.com/photos-large/F/france-paris-eiffel-tower.jpg", "http://adriatic-lines.com/wp-content/uploads/2015/04/canal-of-Venice.jpg", "http://algoos.com/wp-content/uploads/2015/08/ireland-02.jpg", "http://bdo.se/wp-content/uploads/2014/01/Stockholm1.jpg"] class Downloader { class func downloadImageWithURL(url:String) -> UIImage! { let data = NSData(contentsOfURL: NSURL(string: url)!) return UIImage(data: data!) } }