Skip to content

FSImageViewer is a photo viewer for iOS with AFNetworking and caching.

License

Notifications You must be signed in to change notification settings

iwarshak/FSImageViewer

 
 

Repository files navigation

FSImageViewer Build Status Cocoa Pod Cocoa Pod

Screenshot

FSImageViewer is a photo viewer for iOS.

It's initially based on EGOPhotoViewer, but complettly refactored to use ARC, AFNetworking for remote image downloads and EGOCache 2.0 for image caching.

Install

Using CocoaPods:

pod 'FSImageViewer', '~> 1.0.0'

Basic usage

Create your image objects:

FSBasicImage *firstPhoto = [[FSBasicImage alloc] initWithImageURL:[NSURL URLWithString:@"http://example.com/1.jpg"] name:@"Photo 1"];
FSBasicImage *secondPhoto = [[FSBasicImage alloc] initWithImageURL:[NSURL URLWithString:@"http://example.com/2.jpg"] name:@"Photo 2"];

And add them to the data source:

FSBasicImageSource *photoSource = [[FSBasicImageSource alloc] initWithImages:@[firstPhoto, secondPhoto]];

And create and show the view controller:

FSImageViewerViewController *imageViewController = [[FSImageViewerViewController alloc] initWithImageSource:photoSource];
[self.navigationController pushViewController:imageViewController animated:YES];

Advanced usage

You can also create your own image class by implementing the FSImage protocol and your own datasource by implementing the FSImageSource protocol.

Demo

The demo project uses CocoaPods for dependency management.

Install dependencies:pod install

System support

iOS 5.0+ is currently supported.

License

FSImageViewer is available under the MIT license. See the LICENSE file for more info.

About

FSImageViewer is a photo viewer for iOS with AFNetworking and caching.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.1%
  • Other 1.9%