xcode错误:...此类不适用于键ibShadowedLargeTitleTextAttributes的键值编码兼容 [英] xcode error: ...this class is not key value coding-compliant for the key ibShadowedLargeTitleTextAttributes

查看:111
本文介绍了xcode错误:...此类不适用于键ibShadowedLargeTitleTextAttributes的键值编码兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不断收到此错误.在使用颜色设置之前,该应用程序已运行.

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

该错误说明有关ibShadowedLargeTitleTextAttributes的信息.我没有为大标题阴影设置任何颜色,我使用的是默认颜色(清除).我重新启动了Xcode,为阴影使用了一种颜色,然后再次将其删除.当我要运行该错误时,它会不断显示,但是构建成功.

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.

完整的错误消息:

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

当我为标题文本选择另一种颜色(该颜色不属于颜色集的一部分)时,该应用程序正在运行.这很奇怪,因为我为应用程序中的其他文本使用了完全相同的颜色.这是我在颜色集中制成的颜色.我在颜色集中设置了新的颜色,但它也无法正常工作.我必须使用一种标准颜色或从标准颜色窗口中选择一种.

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.

推荐答案

当我将导航栏中的任何颜色设置为命名颜色(来自Assets)时,出现此错误.

我认为这是Apple的错误.

无论如何,您需要将命名的颜色更改为自定义颜色,以避免出现此错误.

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.

这篇关于xcode错误:...此类不适用于键ibShadowedLargeTitleTextAttributes的键值编码兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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