Skip to content

DZNS/DZFICNetworkController

Repository files navigation

DZFICNetworkController

Plug & Play Network Controller for FastImageCache by Path.

Carthage compatible

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.

Usage

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;

Adding it to your project

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.

How it works

DZFICNetworkController utilizes the sourceImageURLWithFormatName: method on your id<FICEntity> object to fetch a URL for the image to be downloaded. No extra efforts required.

License

MIT License. Please refer to the LICENSE file for more details.

Author & Copyright

Nikhil Nigade
© 2014 - 2015 Dezine Zync Studios LLP. - All Rights Reserved.

About

Plug & Play Network Controller for FastImageCache by Path

Resources

License

Stars

Watchers

Forks

Packages

No packages published