LXFPhotoHelper 调用系统相机与相册

程序名称:LXFPhotoHelper

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

LXFPhotoHelper 介绍

一行代码实现调用系统相机与相册,可配置导航栏背景与字体颜色。

自定义样式

// 配置LXFPhotoConfig *config = [[LXFPhotoConfig alloc] init];
config.navBarTintColor = [UIColor greenColor];
config.navBarBgColor = [UIColor purpleColor];
config.navBarTitleColor = [UIColor yellowColor];// sourceType : // UIImagePickerControllerSourceTypeCamera // UIImagePickerControllerSourceTypePhotoLibrary 等[[LXFPhotoHelper creatWithSourceType:sourceType config:config] getSourceWithSelectImageBlock:^(id data) {    if ([data isKindOfClass:[UIImage class]]) { // 图片
        [self.imageView setImage:(UIImage *)data];
    } else {        NSLog(@"所选内容非图片对象");
    }
}];

默认样式

默认样式可避免自定义导航栏后出现的问题(导航栏背景、标题、按键皆为白色,看不清楚)

// config 传入 nil[[LXFPhotoHelper creatWithSourceType:sourceType config:nil] getSourceWithSelectImageBlock:^(id data) {    if ([data isKindOfClass:[UIImage class]]) { // 图片
        [self.imageView setImage:(UIImage *)data];
    } else {        NSLog(@"所选内容非图片对象");
    }
}];

LXFPhotoHelper 官网

https://github.com/LinXunFeng/LXFPhotoHelper

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...