NSError * error = nil; NSHTTPURLResponse * response = nil; [NSURLConnection sendSynchronousRequest:[[NSURLRequest alloc]initWithURL:url] returningResponse:&response error:&error]; if(response.statusCode ==200) { }else { }
NSError * error = nil; NSHTTPURLResponse * response = nil; [NSURLConnection sendSynchronousRequest:[[NSURLRequest alloc]initWithURL:url] returningResponse:&response error:&error]; if(response.statusCode ==200) { }else { }
转载于:https://www.cnblogs.com/hfqf123/articles/3501373.html