http://www.google.com
たとえば、のサーバー時間を取得できますか?
ObjCでそれを行う方法は?
もちろん:
NSURLRequest *rq = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]];
[NSURLConnection sendAsynchronousRequest:rq queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *resp, NSData *data, NSError *err) {
NSDictionary *headers = [(NSHTTPURLResponse *)resp allHeaderFields];
NSString *dateString = [headers objectForKey:@"Date"];
NSLog(@"Google Server Date: %@", dateString);
}];