ObjC获取设备中照片库
作者:宝清 / 发布于2014/11/17/ 367

获取设备中照片库,可以分别得到最后一张图片或者最后一个视频的封面,用户相机的按钮显示

利用block回调,使用非常方便
__weak typeof(self) weakSelf = self;
[self updateLibraryButtonWithCameraMode:XHCameraModeVideo didFinishcompledBlock:^(UIImage *thumbnail) {
[weakSelf.videoLibraryButton setBackgroundImage:thumbnail forState:UIControlStateNormal];
}];

评论列表