TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Apache 2 |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
DCImageView is a simple extension of UIImageView. It adds the ability to do load network based images from there URLs. It also supports gif animations. Also included is a network aware photo viewer like the photos app.
This requires GPHTTPRequest in order to work. Ensure you have that add to your project as well. GPHTTPRequest can be found here: https://github.com/daltoniam/GPHTTPRequest
DCImageView* imgView = [[DCImageView alloc] init];
imgView.showProgress = YES; // if you want a UIActivityView while the image loads.
imgView.URL = @"http://imageURL";
[imgView start];
The Photo Viewer is just as simple:
DCImageViewer* imgViewer = [[DCImageViewer alloc] init];
imgViewer.photoURLs = @[@"http://firstPhotoURL",@"http://SecondPhotoURL",@"http://ThirdPhotoURL"];
UINavigationController* navBar = [[UINavigationController alloc] initWithRootViewController:imgViewer];
[self presentViewController:navBar animated:YES completion:NULL];
This framework requires at least iOS 5 above. Xcode 4 is recommend.
DCImageView is license under the Apache License.