0
我已经做了UIImagePicker添加视图上的UIViewController
UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = self;
picker.allowsEditing = YES;
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.cameraDevice = UIImagePickerControllerCameraDeviceFront;
picker.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];
而且我想添加一个半圈,以让我做到这一点,
CGContextRef gc = UIGraphicsGetCurrentContext();
CGContextBeginPath(gc);
CGContextAddArc(gc, 100, 100, 50, -M_PI_2, M_PI_2, 1);
CGContextClosePath(gc); // could be omitted
CGContextSetFillColorWithColor(gc, [UIColor cyanColor].CGColor);
CGContextFillPath(gc);
UIView *someView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 400, 400)];
[someView.layer renderInContext:gc];
[picker setCameraOverlayView:someView];
但后来当我告诉像这样的选择器
[self presentViewController:picker animated:YES completion:NULL];
我没有看到半圆?这是为什么发生?
谢谢
的链接断开 – iqueqiorio
遗憾。现在检查.. –
好吧谢谢,我只是有点困惑什么DrawCircleView是什么? – iqueqiorio