配置 UIImagePickerController 以便用户可以“添加标题”在预览屏幕中
使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 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