ios,afnetworking,afnetworking-2,afhttprequestoperation,nsurlerrordomain
My code was fine but there was an issue with my iphone simulator. Reset Content and Settings did the trick. Thanks to k6sandeep for the help.
ios,ios8,game-center,nsoperationqueue,nsurlerrordomain
For some reason this alternative call does not lead to errors: GKLeaderboard *leaderboard = [[GKLeaderboard alloc] initWithPlayers:@[ GKLocalPlayer.localPlayer ]]; leaderboard.identifier = leaderboardIdentifier; leaderboard.timeScope = GKLeaderboardTimeScopeAllTime; [leaderboard loadScoresWithCompletionHandler:^(NSArray *scores, NSError *error) { // ... }]; Problem solved....
ios,swift,nsurlsession,nsurlerrordomain
Apparently my post request was getting a timeout error since I was sending an image that the server would find too large. I scaled down the images in order to make my images acceptable by the server. As this post suggests, NSURLErrorDomain Code=-1001 error might be caused by many things...
swift,nsurlconnection,xcode6.3,nsurlerrordomain
NSURLConnectionDelegate method -connection:didFailWithError: provides you with error describing reason for failure. You can differentiate between situations based on error.code - list of codes here.