Very short snippet: get the output of a URL in Objective-C
Friday, February 5, 2010Perhaps I should have written "Very very very, short snippets," but it is an excellent and convenient "trick" that I am about to show. Doing the "two" lines of code shown below, you can get the output of any URL and manipulate it. PLAIN TEXT Objective-C: NSString * url = [NSString stringWithFormat: @ "http://www.appleside.it/ "]; NSString * result = [NSString stringWithContentsOfURL: [NSURL URLWithString: url] [...]










