Latest 1.0.2
Homepage https://github.com/czeludzki/CZImagePreviewer
License MIT
Platforms ios 8.0, requires ARC
Dependencies Masonry, AFNetworking
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Create and show

CZImagePreviewer *imagePreviewer = [[CZImagePreviewer alloc] init];
imagePreviewer.delegate = <CZImagePreviewerDelegate>obj;
imagePreviewer.dataSource = <CZImagePreviewerDataSource>obj;
// when the previewer show(previewer is a subclass of UIViewController), tell previewer where is the image's container and displaying image's index.
- (void)showWithImageContainer:(UIView *)container currentIndex:(NSInteger)currentIndex presentedController:(UIViewController *)presentedController;

dataSource

- (NSInteger)numberOfItemInImagePreviewer:(CZImagePreviewer *)previewer;
/**
previewer image's data source
@return colud be these type of object: UIImage, NSString, NSURL
*/
- (id)imagePreviewer:(CZImagePreviewer *)previewer imageAtIndex:(NSInteger)index;

delegate

// when previewer will dismiss, tells it where to return the image's container.
- (UIView *)imagePreviewer:(CZImagePreviewer *)previewer willDismissWithDisplayingImageAtIndex:(NSInteger)index;
// longPress operation on previewer
- (void)imagePreviewer:(CZImagePreviewer *)imagePreview didLongPressWithImageAtIndex:(NSInteger)index;

Requirements

Installation

CZImagePreviewer is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'CZImagePreviewer'

Author

czeludzki, [email protected]

License

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

Latest podspec

{
    "name": "CZImagePreviewer",
    "version": "1.0.2",
    "summary": "iOSu4e0bu7684u56feu7247u6d4fu89c8u5de5u5177",
    "description": "iOSu4e0bu7684u56feu7247u6d4fu89c8u5de5u5177,u652fu6301u624bu52bfdismiss",
    "homepage": "https://github.com/czeludzki/CZImagePreviewer",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "czeludzki": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/czeludzki/CZImagePreviewer.git",
        "tag": "1.0.2"
    },
    "source_files": "CZImagePreviewer/Classes/**/*",
    "frameworks": "UIKit",
    "requires_arc": true,
    "dependencies": {
        "Masonry": [],
        "AFNetworking": []
    }
}

Pin It on Pinterest

Share This