Latest 1.1.5
Homepage https://github.com/zhuayi/ZCamera
License MIT
Platforms ios 7.0, requires ARC
Dependencies MBProgressHUD+BWMExtension, MWPhotoBrowser, ZComponent/ZBaseViewController, ZComponent/Category, ZComponent/ZMacro
Authors

CI Status
Version
License
Platform

Usage

ZCamera是一款仿微信的相机和图片选择控件.

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

Requirements

enter image description hereenter image description hereenter image description here

Example

引入头文件

#import "ZCameraViewManager.h"

打开遮罩选择图库

ZCameraViewManager *camera = [[ZCameraViewManager alloc] init];
camera.delegate = self;
[camera show];

直接打开图库

ZCameraViewManager *camera = [[ZCameraViewManager alloc] init];
camera.delegate = self;
[camera goToPhotoLibrary];

直接打开相机

ZCameraViewManager *camera = [[ZCameraViewManager alloc] init];
camera.delegate = self;
[camera goToCameraView];

可选参数

是否多选, 默认 yes

@property (nonatomic, assign) BOOL multiple;

多选图片最大值

@property (nonatomic, assign) NSInteger maximum;

多选图片时初始值

@property (nonatomic, assign) NSInteger threshold;

是否允许编辑, 单选情况下才生效

@property (nonatomic, assign) BOOL allowsEditing;

ZCameraViewDelegate

相机不可用时调用

- (void)didCameraUnavailable;

图库不可用时调用

- (void)didPhotoLibraryUnavailable;

取消选择图片时调用

- (void)didDismissViewController;

选取一张拍摄后的照片后调用

- (void)didSendPhotoWidthImage:(UIImage *)image;

从图库中选择N 张图片后调用

- (void)didSendPhotoWithImageArray:(NSArray *)imageArry;

Installation

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

pod "ZCamera"

Author

zhuayi, [email protected]

License

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

Latest podspec

{
    "name": "ZCamera",
    "version": "1.1.5",
    "summary": "ZCamerau662fu4e00u6b3eu4effu5faeu4fe1u7684u76f8u673au548cu56feu7247u9009u62e9u63a7u4ef6",
    "description": "ZCamerau662fu4e00u6b3eu4effu5faeu4fe1u7684u76f8u673au548cu56feu7247u9009u62e9u63a7u4ef6,u7b80u5355u96c6u6210,u9ad8u6548u6027u80fd.",
    "homepage": "https://github.com/zhuayi/ZCamera",
    "license": "MIT",
    "authors": {
        "zhuayi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zhuayi/ZCamera.git",
        "tag": "1.1.5"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resources": "Pod/Assets/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "dependencies": {
        "MBProgressHUD+BWMExtension": [
            "~> 1.0.0"
        ],
        "MWPhotoBrowser": [
            "~> 2.1.1"
        ],
        "ZComponent/ZBaseViewController": [],
        "ZComponent/Category": [],
        "ZComponent/ZMacro": []
    }
}

Pin It on Pinterest

Share This