Unzip NSData folder from URL Swift
问题 The code below works for downloading a single image from a url. func imageForImageURLString(imageURLString: String, completion: (image: UIImage?, success: Bool) -> Void) { guard let url = NSURL(string: imageURLString), let data = NSData(contentsOfURL: url), let image = UIImage(data: data) else { completion(image: UIImage(named:"absolut5.png"), success: false); return } completion(image: image, success: true) } however some of the urls I am working with are a zipped folder with several png