DCImageView 0.0.1

DCImageView 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License Apache 2
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Dalton Cherry

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.

Dependancies

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

Example

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];

Requirements

This framework requires at least iOS 5 above. Xcode 4 is recommend.

License

DCImageView is license under the Apache License.

Contact

Dalton Cherry