Latest 3.0.0
Homepage https://github.com/Meniny/MXImageBrowser-in-Objective-C
License MIT
Platforms ios 7.0, requires ARC
Dependencies SDWebImage
Frameworks Foundation, UIKit

MXImageBrowser-in-Objective-C

MXImageBrowser is a custom alert view.

Installation with CocoaPods

pod 'MXImageBrowser'

Usage

#import "MXImageBrowser.h"

Sample Code:

NSMutableArray <NSURL *>*arr = [NSMutableArray array];
[arr addObject:[NSURL URLWithString:@"https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=2525465246,1789307047&fm=80"]];
[arr addObject:[NSURL URLWithString:@"https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1469349381,4025225535&fm=80"]];
[arr addObject:[NSURL URLWithString:@"https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=340374440,3473738723&fm=80"]];
[[MXImageBrowser browserWithURLs:arr descriptions:nil] show];
[[MXImageBrowser browserWithImages:@[[UIImage imageNamed:@"Detail"], [UIImage imageNamed:@"Logo"]] descriptions:nil] show];
MXImageBrowser *browser = [MXImageBrowser browserWithImages:@[[UIImage imageNamed:@"Detail"], [UIImage imageNamed:@"Logo"]] descriptions:nil];
// Since 3.0.0:
[browser setAllowsShareAction:YES];
[browser showWithDelegate:self];

Latest podspec

{
    "name": "MXImageBrowser",
    "version": "3.0.0",
    "summary": "An image browser",
    "description": "The first stable version of MXImageBrowser, an image browser",
    "homepage": "https://github.com/Meniny/MXImageBrowser-in-Objective-C",
    "license": "MIT",
    "authors": "Elias Abel",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Meniny/MXImageBrowser-in-Objective-C.git",
        "tag": "3.0.0"
    },
    "source_files": "MXImageBrowser-OC/**/*.{h,m}",
    "resources": "MXImageBrowser-OC/Image/[email protected]",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "SDWebImage": []
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This