iOS 支持裁剪特性的相機處理器:RRCamera
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]; }
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!