Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 类CKBrowserSwitchServiceWController重写-traitCollection获取程序。。。这个消息意味着什么?_Swift_Xcode - Fatal编程技术网

Swift 类CKBrowserSwitchServiceWController重写-traitCollection获取程序。。。这个消息意味着什么?

Swift 类CKBrowserSwitchServiceWController重写-traitCollection获取程序。。。这个消息意味着什么?,swift,xcode,Swift,Xcode,[TraitCollection]类CKBrowserSwitchServiceWController覆盖 -traitCollection获取程序,不受支持。如果您试图覆盖traits,则必须使用适当的API 我在调试器中收到此消息,因为我在应用程序中使用MFMessageComposeViewController、MFMailComposeViewController、CNContactPickerViewController,并使用导航控制器显示它们。我的导航控制器是在每个视图控制器文件上

[TraitCollection]类CKBrowserSwitchServiceWController覆盖 -traitCollection获取程序,不受支持。如果您试图覆盖traits,则必须使用适当的API


我在调试器中收到此消息,因为我在应用程序中使用MFMessageComposeViewController、MFMailComposeViewController、CNContactPickerViewController,并使用导航控制器显示它们。我的导航控制器是在每个视图控制器文件上单独定制的。首先,我尝试了在应用程序中定制委托“didFinishLauching”方法,但这导致了一些显示这些内置控制器的问题。但只要我还记得,当我尝试做后一件事时,我仍然收到了上面的消息。

根据iOS12 Beta 2发行说明,您可以忽略这些消息:

从Xcode运行应用程序时,您可能会看到有关覆盖traitCollection getter的UIKit类的控制台错误。对于系统类,您可以安全地忽略这些消息。如果您在自己的类中看到此错误消息,则可能表明您需要解决一个真正的问题。(51651561)