objective c - AFNetworking JSON Request, neither success nor error block called -


I am trying to learn AFNetworking so that a simple block is written. I'm trying to retrieve & amp; Enter json from the site url below.

  NSString * string = @ "http://transportapi.com/v3/uk/bus/stop/490012745J/live.json?api_key=6ee115459cbeccdb902b14d39b61330d&APP_ID = 9deefeb1 & group = way "; NSURL * url = [NSURL URLWithString: string]; NSURLRequest * Request = [NSURLRequest requestWithURL: url]; AFHTTPRequestOperation * Operation = [[AFHTTPRequestOperation alloc] initWithRequest: request]; Operation.responseSerializer = [AFJSNRpsPensScierizer Serializer]; [Operation Set EndwatchWithoutSuccess: ^ (FHttpKAFIFFATION Open, Operation, ID Response Object) {NSDRIDE * MYDICT = (NSDrippress *) response object; NSString * key; (Key in mydict) {NSLog (@ "key% @", key); }} Failure: ^ (FHTPPKEAST Operation * Operation, NSERR * Error) {NSLog (@ "Error"); }];   

Neither success or failure block is being called. Can anyone tell me what I have done?

to add

  [[NSOptionSquo Menu] Adoption: Operation ];    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -