热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在目标c中捕获图像事件-Captureimageeventinobjectivec

Iamtryingtosetamethodwhencaptureimageistouched.我试图在触摸捕获图像时设置方法。1)userpressthecaptu

I am trying to set a method when capture image is touched.

我试图在触摸捕获图像时设置方法。

1) user press the capture button in the UIImagePickerController.
2) method is triggered by pressing this button.

I feel silly asking this it but i couldnt find an asnwer without creating custom overlay.

我觉得这很傻,但我没有创建自定义叠加,我找不到asnwer。

im talking about the big circle button in this image: http://i.stack.imgur.com/FGpMW.png

我正在谈论这张图片中的大圆圈按钮:http://i.stack.imgur.com/FGpMW.png

1 个解决方案

#1


0  

Set your view controller to handle the UIImagePickerController delegate. Once your delegate is set you will wait for events under

设置视图控制器以处理UIImagePickerController委托。一旦你的代表被设置,你将等待下面的事件

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info

This is called when the user takes a picture with the camera or when the user selects one from their image library. To make sure the user only takes a picture with the camera set UIImagePickerControllerSourceType to type UIImagePickerControllerSourceTypeCamera under the UIImagePickerController.

当用户使用相机拍照或用户从图像库中选择一个时,会调用此方法。要确保用户仅使用相机设置UIImagePickerControllerSourceType拍照,以在UIImagePickerController下键入UIImagePickerControllerSourceTypeCamera。


推荐阅读
author-avatar
php学者
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有