2010-02-23 4 views

Répondre

3

Pour une simple demande, vous pouvez utiliser stringWithContentsOfURL

NSURL *url = [NSURL URLWithString:@"http://www.stackoverflow.com"]; 
NSString *content = [NSString stringWithContentsOfURL:url encoding:NSASCIIStringEncoding]; 
+1

C'mon, ASCII est tellement 1963! – Kornel

0

Une question très similaire answered here:

S'il vous plaît lire (ou relire) the SO faq. Les questions doivent être

* detailed and specific 
* written clearly and simply 
* of interest to at least one other programmer somewhere 

Et: (! Et peut-être même répondu)

S'il vous plaît regarder autour pour voir si votre question a déjà été posée

Questions connexes