De kan lastes ned her: KURLConnection
Eksempel bruk
NSString *urlString = [NSString
stringWithFormat:@"http://ws.spotify.com/search/1/track.json?q=%@",
[title stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[KURLConnection startWithRequest:
[KURLConnection createGetRequestForUrl:[NSURL URLWithString:urlString]]
successHandler:^(NSData *response)
{
NSLog(@"%@", response);
}
failedHandler:^(NSError *requestError)
{
NSLog(@"%@", requestError);
}
];
Det finnes flere hjelpemetoder i KURLConnection, for å se hvilke kan du åpne opp KURLConnection.h