iOS 支持裁剪特性的相机处理器:RRCamera

jopen 10年前

RRCamera Controler可用于管理相机设备,你可以裁剪图片。它使用AVFoundation框架。

 
- (void) takePictureDone:(UIImage *)image {      [viewImage setImage:image];      [camera dismissViewControllerAnimated:YES completion:nil];  }    - (void) takePicture {      camera = [[RRCamera alloc] init];        UIView *customUI = [[RRCustomView alloc] initWithFrame:self.view.frame];      camera.customView = customUI;      camera.delegate = self;      camera.sizeCropPicture = CGSizeMake(320, [UIScreen mainScreen].bounds.size.height);      [self presentViewController:camera animated:YES completion:nil];  }

项目主页:http://www.open-open.com/lib/view/home/1419479942750