Latest 0.0.6
Homepage https://github.com/diniska/MAKImageGalleryView
License MIT
Platforms ios 6.0, requires ARC
Frameworks UIKit
Authors

CI Status
Version

Image gallery for iOS apps, that allows to show images animated or user interacted

Installation

The easiest way is to use CocoaPods. It takes care of all required frameworks and third party dependencies:

pod 'MAKImageGalleryView', '~> 0.0'

Usage example

@interface MAKViewController () <MAKImageGalleryViewDataSource>
@property (weak, nonatomic) IBOutlet MAKImageGalleryView *imageGalleryView;
@property (weak, nonatomic) IBOutlet MAKImageGalleryView *animatedImageGalleryView;
@end

@implementation MAKViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.imageGalleryView.imageGalleryDataSource = self;

    self.animatedImageGalleryView.imageGalleryDataSource = self;
    self.animatedImageGalleryView.imageChangingDelay = 3;
    self.animatedImageGalleryView.changeImagesAutormatically = YES;
}

#pragma mark - MAKImageGalleryViewDataSource
- (NSInteger)numberOfImagesInGallery:(MAKImageGalleryView *)galleryView {
    return 4;
}

- (UIImage *)imageInGalery:(MAKImageGalleryView *)galleryView atIndex:(NSInteger)index {
    NSString *const imageName = [NSString stringWithFormat:@"image%i.jpg", index];
    return [UIImage imageNamed:imageName];
}

- (UIViewContentMode)imageGallery:(MAKImageGalleryView *)galleryView contentModeForImageAtIndex:(NSInteger)index {
    return UIViewContentModeScaleAspectFill;
}
@end

The result is:

image alt

All pictures for example app taken from @diniska instagram

Latest podspec

{
    "name": "MAKImageGalleryView",
    "version": "0.0.6",
    "summary": "Image gallery for iOS apps, that allows to show images animated or user interacted",
    "description": "tttttImage gallery for iOS apps, that allows to show images animated or user interacted. That gallery scrolling your image horizontallyn",
    "homepage": "https://github.com/diniska/MAKImageGalleryView",
    "screenshots": "https://raw.githubusercontent.com/diniska/MAKImageGalleryView/master/Screens/screen1.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Denis Chaschin": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/diniska/MAKImageGalleryView.git",
        "tag": "0.0.6"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": [
        "Example",
        "Screens"
    ],
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This