Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将使用带有源的 UIImagePickerController 作为相机。默认情况下,当我拍摄图像时,我能够以纵向模式拍摄照片。这里的问题是我无法在横向模式下显示相同的视图。
有没有其他方法可以在横向模式下打开相机?
提前致谢。
首先,无法在横向模式下打开相机所以我们必须根据需要自定义视图。您必须向图片添加旋转变换,以匹配横向视图。您可以将其硬编码为
块引用
CGAffineTransformRotate(CGAffineTransformIdentity, 117.81)"