简体   繁体   English

iPhone相机工具栏按钮

[英]iPhone camera toolbar buttons

The iPhone camera toolbar holds the following buttons: cancel/record iPhone相机工具栏包含以下按钮:取消/记录

I would like to change the cancel button to the small image button that takes me to the photo library. 我想将“取消”按钮更改为将我带到照片库的小图像按钮。

I wasn't sure if i need to use the overlay or does the xcode have something more comfortable in this case since this is something well known and used. 我不确定我是否需要使用覆盖或在这种情况下xcode是否更舒适,因为这是众所周知的且已使用过的东西。

Is there something like this? 有这样的东西吗?

Thanks, 谢谢,

UIImagePickerController Class Reference UIImagePickerController类参考

You can customize an image picker controller to manage user interactions yourself. 您可以自定义图像选择器控制器以自己管理用户交互。 To do this, provide an overlay view containing the controls you want to display, and use the methods described in “Capturing Still Images or Movies.” You can display your custom overlay view in addition to, or instead of, the default controls. 为此,请提供一个包含要显示的控件的叠加视图,并使用“捕获静止图像或电影”中介绍的方法。除了默认控件之外,您还可以显示自定义叠加视图。 Custom overlay views for the UIImagePickerController class are available in iOS 3.1 and later by way of the cameraOverlayView property. UIImagePickerController类的自定义叠加层视图在iOS 3.1中可用,并且以后通过cameraOverlayView属性提供。 For a code example, see the PhotoPicker sample code project. 有关代码示例,请参见PhotoPicker示例代码项目。

您可以将overlayView设置为UIImagePickerController

imagePicker.cameraOverlayView = yourOverlayView;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM