NSURLSession(TKCategory) Category Reference
| Declared in | NSURLSession+TKCategory.h NSURLSession+TKCategory.m |
Instance Methods
jsonDataTaskWithRequest:options:completionHandler:
Returns the object in the array with the lowest index value.
- (NSURLSessionDataTask *)jsonDataTaskWithRequest:(NSURLRequest *)request options:(NSJSONReadingOptions)options completionHandler:(void ( ^ ) ( id object , NSURLResponse *response , NSError *error ))completionParameters
- request
The
NSURLRequestof the request.
- options
JSON reading options.
- completion
The block that is called upon completion.
Return Value
The NSURLSessionDataTask object.
Declared In
NSURLSession+TKCategory.hjsonDataTaskWithURL:options:completionHandler:
Returns the object in the array with the lowest index value.
- (NSURLSessionDataTask *)jsonDataTaskWithURL:(NSURL *)URL options:(NSJSONReadingOptions)options completionHandler:(void ( ^ ) ( id object , NSURLResponse *response , NSError *error ))completionParameters
- URL
The
NSURLof the request.
- options
JSON reading options.
- completion
The block that is called upon completion.
Return Value
The NSURLSessionDataTask object.
Declared In
NSURLSession+TKCategory.h