【问题标题】:How can I display the camera in Landscape View on iPhone?如何在 iPhone 的横向视图中显示相机?
【发布时间】:2011-11-08 04:15:14
【问题描述】:

我正在使用UIImagePickerController 向我的应用程序添加相机功能。它以纵向模式工作。如何添加对横向模式的支持?

【问题讨论】:

  • 欢迎来到 StackOverflow。随意阅读FAQ,选择一个用户名/头像,然后稍等片刻!

标签: iphone ios orientation uiimagepickercontroller


【解决方案1】:

尝试使用 [NSNotificationCenter addObserver: for UIDeviceOrientationDidChangeNotification

根据文档,不允许在 uiimagepickercontroller 中对相机进行子类化,但这并不意味着您不能自己拾取事件并手动处理旋转。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-27
    • 1970-01-01
    • 2012-06-10
    相关资源
    最近更新 更多