ios - iOS7相机拍照模式全屏
<p><p>有没有办法在装有 iOS7.1 的 iPod 5gen 上设置相机拍照模式<strong>全屏</strong>?当你要拍照时,拍照模式不是全屏,只有视频模式是全屏,有没有办法改变呢? (我认为 iPhone 5 和更高版本一定会出现同样的问题)。</p>
<p>到目前为止,这是我的代码,它显示控件但部分显示,而不是全屏显示,并且控件与顶部对齐,因为从 View 中删除了相机控件:</p>
<pre><code>self.picker = [ init];
self.picker.delegate = self;
self.picker.allowsEditing = NO;
self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
self.picker.showsCameraControls = NO;
//self.picker.mediaTypes = mediaTypes; //just for the record
self.picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
self.picker.modalPresentationStyle = UIModalPresentationFullScreen;
self.picker.cameraOverlayView = ; //some custom views
;
</code></pre>
<p>非常感谢您。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>应用适当的 CGAffineTransform 变换来设置相机模式。</p>
<p>试试下面的链接,这可能对你有帮助:</p>
<p> <a href="https://stackoverflow.com/questions/20779628/how-to-get-the-custom-overlay-for-uiimagepicker-camera-to-be-full-screen-in-ios" rel="noreferrer noopener nofollow">here</a> </p></p>
<p style="font-size: 20px;">关于ios - iOS7相机拍照模式全屏,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/22776774/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/22776774/
</a>
</p>
页:
[1]