- Create a Cocoa Touch static Library project with ARC and Unit testiing
- Rename the generated class to Employees
- Implement a method for your API to fetch employees feeds from a specific location
example:
- (void)getFeedsFrom:(NSURL *)feedsLocation withCompletionHandler:(void (^)(EmployeesResponse *))completionHandler;
- Create a test to verify that the method fails - no response returned
- Include JSONKit into the project as a git submodule and use it to parse the JSON feed. hint: use -fno-objc-arc flag to exclude ARC
- Use dispatch_async to make the api asynchronous.
- Fix the test! use a fake runloop to make the test async
- Create a method in the API to get an employee image:
- (void)getImageForEmployee:(NSDictionary *)employee withCompletionHandler:(void (^)(UIImage *))completionHandler
. use a function to fetch images from https://gist.github.com/MaciejWalczynski/4757248 - Run quick test based on pevious test
ex04
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||