Dot*_*Dot 3 iphone uiimagepickercontroller ios
当我使用UIImagePickerController时cameraOverlayView,我可以从叠加视图中获得唯一的选区吗?
或者你可以- (void)drawRect:(CGRect)rect像这样覆盖你的cameraOverlayView (未经测试):
// Request draw context
CGContextRef context = UIGraphicsGetCurrentContext();
// Draw background
CGContextSetRGBFillColor(context, 0.0f, 0.0f, 0.0f, 1.0f);
CGContextFillRect(context, rect);
// Cut hole
CGContextSetBlendMode(context, kCGBlendModeClear);
CGContextFillRect(context, CGRectMake(40, 40, 100, 100);
Run Code Online (Sandbox Code Playgroud)
我在Faces应用程序(http://faces.pixelshed.net/)中做了类似的事情.如果其中一个步骤似乎不清楚,请随意写评论.
| 归档时间: |
|
| 查看次数: |
2940 次 |
| 最近记录: |