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 ))completion
Parameters
- request
The
NSURLRequest
of the request.
- options
JSON reading options.
- completion
The block that is called upon completion.
Return Value
The NSURLSessionDataTask
object.
Declared In
NSURLSession+TKCategory.h
jsonDataTaskWithURL: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 ))completion
Parameters
- URL
The
NSURL
of the request.
- options
JSON reading options.
- completion
The block that is called upon completion.
Return Value
The NSURLSessionDataTask
object.
Declared In
NSURLSession+TKCategory.h