xcode error: …this class is not key value coding-compliant for the key ibShadowedLargeTitleTextAttributes

房东的猫 提交于 2019-12-04 15:35:16

问题


I keep getting this error. The app worked before I used a color set.

The error says something about ibShadowedLargeTitleTextAttributes. I dont have any color set for the large title shadow, I am using the default (clear). I restarted Xcode, used a color for the shadow, removed it again. The error keeps showing up when I want to run it, but the built succeeds.

The full error message:

Terminating app due to uncaught exception 'NSUnknownKeyException', 
reason: '[<UINavigationBar 0x10650fd10> valueForUndefinedKey:]: 
this class is not key value coding-compliant for the 
key ibShadowedLargeTitleTextAttributes.'

Edit: The App is working when I choose another color for the title text (one that is not part of the color set). This is very strange since I use the exact same color for other text in the app. It is a color I made in a color set. I made a new color in the color set, it is also not working. I have to use a standard color or choose one from the standard color window.


回答1:


This error appears to me when I set the colors of anything in the navigation bar to a named color (from Assets).

I think it is a bug from Apple.

Anyway, you need to change the named color to a custom color to avoid this error.




回答2:


Set the Large title attribute of Navigation Item to Never in the IB



来源:https://stackoverflow.com/questions/49833678/xcode-error-this-class-is-not-key-value-coding-compliant-for-the-key-ibshado

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!