[Solved] How to get data from website

This is simple way 1) Get the html content from the url: you can use – NSURLSession NSURLSession *session = [NSURLSession sessionWithConfiguration:sessionConfig delegate:nil delegateQueue:nil]; [[session dataTaskWithURL:[NSURL URLWithString:urlString] completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { – NSURLConnection: NSURLConnection *urlConnection = [[NSURLConnection alloc] initWithRequest:self.request delegate:self]; dataWithContentsOfURL: NSData * htmlData = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlString]]; 2) Parse the variable … Read more

[Solved] what is the delegate of these NSURLSession methods in Swift?

If you type this into Playground: class Downloader : NSObject, NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate { } and then start typing inside the class URLS you get all the autocompletion stuff. Try that and if this does not work restart Xcode. Maybe “cleaning” the project will also help. Please also note that the methods you reference in your … Read more