NSURL *xmlURL = [NSURL URLWithString:
                     @"http://www.powenko.com"];
    NSURLRequest *req = [NSURLRequest requestWithURL:xmlURL
                      cachePolicy:NSURLRequestReturnCacheDataElseLoad
                  timeoutInterval:30];

NSURLResponse *resp = nil;
NSData *data = [NSURLConnection sendSynchronousRequest:req
                                     returningResponse:&resp
    if (!data)
        return nil;
    NSLog(@"Received %ld bytes.", [data length]);
return nil;

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply