Description
I am using xCode 3.2 beta 3.
I can't compile it for Device/simulator 4 or Simulator 3.2 but I can compile and run it on Device 3.2
Using something very simple that works on the simulator
[self setBaseURL:[NSURL URLWithString:@"http://tddd-2010-1.lol.com:8080/cars-rest/resources"]]
....
[self postPath:@"/account/login/" withOptions:opts object:aDelegate];
I get Bad Url :-/
-
(void)restConnection:(NSURLConnection *)connection didFailWithError:(NSError *)error object:(id)object {
// Handle connection errors. Failures to connect to the server, etc.//UNCOMMENT FOR DEMO
//MPAlertWithErrorAndDelegate(error, nil);
NSLog(@"didFailWithError, %@", error);
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
[object performSelector:@selector(showMessage:format:) withObject:@"Cannot login right now" withObject:@"error"];
}