Hi guys, I've tranplanted this from another app of mine, but it seems not to be working in the current app:
static NSString *testurl = @"http://google.com/";
NSURLRequest *URLRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:testurl]];
self.Connection = [[[NSURLConnection alloc] initWithRequest:URLRequest delegate:self] autorelease];
NSAssert(self.Connection != nil, @"Error: Server cannot be contacted!");
Any ideas? I am importing CFNetwork in the delegate.