isOrientationSupported在IOS中已弃用 [英] isOrientationSupported is deprecated in IOS

查看:122
本文介绍了isOrientationSupported在IOS中已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误,我不知道如何修复它..

I am getting this error and i have no idea how to fix it..

WARNING: -[<AVCaptureVideoPreviewLayer: 0xad482c0> isOrientationSupported] is deprecated.  Please use AVCaptureConnection's -isVideoOrientationSupported

然而,当我看到苹果文档它说它是Mac OS功能..而不是IOS。 ..所以我有点困惑...期待得到一些答案..谢谢..

however when I look at the apples documentation it says that it is a Mac OS function.. not IOS... so I am a bit confused... looking forward get some answers.. Thanks..

推荐答案

AVCaptureConnection 也适用于iOS 此处。您可能查看了错误的文档。

AVCaptureConnection is available also for iOS here. You probably looked in the wrong documentation.

这篇关于isOrientationSupported在IOS中已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆