Plug & Play Network Controller for FastImageCache by Path.
FastImageCache by Path is an incredible Image Caching library for iOS apps. However, you may have noticed that downloading images from the network is your responsibility. DZFICNetworkController is a simple class that conforms the FIC’s delegate protocol and handles all the networking for you.
It’s really simple.
DZFICConfiguration *config = [DZFICConfiguration new];
config.maxConcurrentConnections = 50;
config.shouldFollowRedirects = NO;
config.shouldContinueInBackground = YES;
self.networkController = [[DRFICNetworkController alloc] initWithConfiguration:config];
[FICImageCache sharedImageCache].delegate = self.networkController;
We recommend using Carthage to add DZFICNetworkController
to your project. Simply add the following to your Cartfile
github "dzns/DZFICNetworkController"
then run, carthage update
to grab the latest source.
DZFICNetworkController
utilizes the sourceImageURLWithFormatName:
method on your id<FICEntity>
object to fetch a URL for the image to be downloaded. No extra efforts required.
MIT License. Please refer to the LICENSE file for more details.
Nikhil Nigade
© 2014 - 2015 Dezine Zync Studios LLP. - All Rights Reserved.