LDImagePicker
用法:
#import "LDImagePicker.h" LDImagePicker *imagePicker = [LDImagePicker sharedInstance];
imagePicker.delegate=self;
//设置宽高比scale来设置剪切框大小,剪切框宽度固定为屏幕宽度
//0 相机 1图片
[imagePickershowImagePickerWithType:0 InViewController:self Scale:0.5625];//比例自定
- (void)imagePickerDidCancel:(LDImagePicker*)imagePicker{
}
- (void)imagePicker:(LDImagePicker*)imagePicker didFinished:(UIImage*)editedImage{
self.imageViewUrl= editedImage;//图片
}
网友评论