配置 UIImagePickerController 以便用户可以“添加标题”在预览屏幕中

发布于 2024-09-01 09:44:41 字数 73 浏览 2 评论 0原文

使用 UIImagePickerController 获取/选择图像后,某些应用程序会在预览屏幕中显示“添加标题”。你是怎么做到的?

Some apps display an "Add a caption" in the Preview Screen after taking/selecting an Image using UIImagePickerController. How do you do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意中人 2024-09-08 09:44:41

在 iPhone OS 3.1 及更高版本中,如果需要,您可以自行管理相机交互。您可以提供自定义叠加视图来显示自定义拍照界面,并且可以从代码中启动拍照。除了图像选择器界面提供的默认控件之外,还可以显示您的自定义叠加视图,或者代替图像选择器界面提供的默认控件。

要使用此类,您必须提供符合 UIImagePickerControllerDelegate 协议的委托。界面启动后,此类会通知您的委托用户的操作。然后,您的委托负责关闭选择器并返回到您的应用程序的视图。有关此协议的更多信息,请参阅 UIImagePickerControllerDelegate 协议参考。

请参阅 http://developer.apple.com /iphone/library/documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

In iPhone OS 3.1 and later you can manage the camera interactions yourself, if desired. You can provide a custom overlay view to display a custom picture-taking interface and you can initiate the taking of pictures from your code. Your custom overlay view can be displayed in addition to, or instead of, the default controls provided by the image picker interface.

To use this class, you must provide a delegate that conforms to the UIImagePickerControllerDelegate protocol. After the interface starts, this class notifies your delegate of the user’s actions. Your delegate is then responsible for dismissing the picker and returning to your application’s views. For more information about this protocol, see UIImagePickerControllerDelegate Protocol Reference.

See http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文