Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
315 views
in Technique[技术] by (71.8m points)

swift - Class CKBrowserSwitcherViewController overrides the -traitCollection getter... What this message means?

[TraitCollection] Class CKBrowserSwitcherViewController overrides the -traitCollection getter, which is not supported. If you're trying to override traits, you must use the appropriate API.

I am getting this message in debugger since I am using MFMessageComposeViewController, MFMailComposeViewController, CNContactPickerViewController in my application, and presenting them with navigation controller. My navigation controller is customized on each view controller files individually. First I tried doing the customization in app delegate "didFinishLauching" method, but that caused some problems presenting these built in controllers. But as long as I remember I was still getting the above message, when I was trying to do the latter.

question from:https://stackoverflow.com/questions/58779786/class-ckbrowserswitcherviewcontroller-overrides-the-traitcollection-getter-w

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can ignore these messages as per iOS12 Beta 2 release notes:

When running your app from Xcode, you might see console errors about UIKit classes that override the traitCollection getter. You can safely ignore these messages for system classes. If you see this error message for your own classes, it likely indicates a real issue for you to fix. (51651561)

Apple Forum Discussion Link


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...