为什么我的应用程序缺少 UIImagePickerController 取消/预览/选择工具栏?
我的应用程序没有对 UIImagePickerController 执行任何特殊操作。我允许用户从相机中选择(如果可用)或从相册中选择。
我注意到使用相机时没有重拍/使用屏幕,并且选择时没有取消/预览/选择工具栏。
我没有看到文档中如何启用此功能。没有什么...
这是一个旧功能,现在在 4.2+ 中被删除了吗?我注意到消息应用程序和 WhatsApp 都有这些预览工具栏。
我缺少什么?谢谢!
这是我发起的一个示例项目。 http://dl.dropbox.com/u/4153528/PickerTest.zip
它显示了问题...
My app is not doing anything special with the UIImagePickerController. I'm allowing the user to pick from the camera if available or to pick from the photo albums otherwise.
I notice that there's no retake/use screen when using the camera, and there's no cancel/Preview/choose toolbar when picking.
I don't see how this is enabled in the documentation. There's nothing...
Was this an old feature that's now been removed in 4.2+? I notice the Messages app and WhatsApp both have these preview toolbars.
What am I missing? Thanks!
Here's an example project I whipped up. http://dl.dropbox.com/u/4153528/PickerTest.zip
It shows the problem...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保您尚未应用 UIButton (ExpandsVertically) 类别:
https://stackoverflow.com/a/4978003/2005332
它会导致UIImagePickerController的按钮消失
Make sure that you haven't applied the UIButton (ExpandsVertically) category:
https://stackoverflow.com/a/4978003/2005332
It can cause the buttons of the UIImagePickerController to disappear