xcode错误:...此类不适用于键ibShadowedLargeTitleTextAttributes的键值编码兼容

编程入门 行业动态 更新时间:2024-10-05 17:17:55
本文介绍了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的键值编码兼容

本文发布于:2023-11-26 19:02:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634804.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:此类   键值   不适用于   错误   xcode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!