- Support iPad/iPhone. (Universal)
- Popup thumbnail image and display original image on full screen.
- Customize full screen image viewer.
- Customize original image downloader.
- Simple code and short code. Easy to customize.
- iOS 5.0 and later.
- Automatic reference counting. (ARC)
MIT License
Please click the image if you want to play the sample video.
_imageManager = [[STPopupFocusImageManager alloc] initWithRootViewController:self imageViewControllerClass:[STPopupFocusNetworkImageViewController class]];
NSURL *url = [NSURL URLWithString:_STOriginalImageURLString];
[_imageManager popupFromView:_imageButton // The view displays thumbnail.
fromImage:_image // The thumbnail image object.
originalImageURL:url // The original image URL.
originalImageSize:CGSizeMake(800, 600)]; // The original image size.By default the originaiImageURL parameter just support file URL.
NSURL *url = [[NSBundle mainBundle] URLForResource:@"ramen800x600" withExtension:@"jpg"];If you want to load original image from network, you may customize full screen image viewer(STPopupFocusImageViewController).
Subclassing STPopupFocusImageViewController.
@interface STPopupFocusNetworkImageViewController : STPopupFocusImageViewController
@endPlease read STPopupFocusImageManagerSample2/STPopupFocusNetworkImageViewController.m to know how to implement. This sample uses AFNetworking and nimubs/NIPhotoScrollView.
