Category Archives: iOS Development

AFNetworking requestWithMethod:URLString: parameters:error: returns nil for URLString

I was creating a request as below to test one of my network calls. NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:@"POST" URLString:[NSURL URLWithString:URLString relativeToURL:self.baseURL].absoluteString parameters:parameters error:nil];NSMutableURLRequest *request = [self.requestSerializer requestWithMethod:@"POST" URLString:[NSURL URLWithString:URLString relativeToURL:self.baseURL].absoluteString parameters:parameters error:nil]; Annoyingly the requestSerializer would return nil for the URLString. This is the url I was expecting it to return. {baseURL}/users/396250/bookings/33050/cancellation?reason=Bad weather After […]

“Warning: Attempt to present on while a presentation is in progress!”

“Warning: Attempt to present <CDVInAppBrowserViewController: 0x1ed97060> on <MainViewController: 0x1ed64730> while a presentation is in progress!” I was getting this issue when i opened an InAppBrowser on an iOS device. When this happened the InAppBrowser would not actually load. The solution to this is to wrap the window.open call in a setTimeout setTimeout( function() { var […]

Undefined symbols for architecture i386 – Reachability

Today I add the Reachability classes to an app I am working on, added my #import Reachability.h to the correct files and then implemented a method to check if the device was using wifi. When I hit build, I got the following error. Undefined symbols for architecture i386: “_SCNetworkReachabilityCreateWithAddress”, referenced from: +[Reachability reachabilityWithAddress:] in Reachability.o […]