Pol*_*ina 5 xcode uinavigationbar uikit uinavigationcontroller swift
更新 Xcode 后,我在控制台中看到以下消息:
[Assert] UINavigationBar decoded as unlocked for UINavigationController, or navigationBar delegate set up incorrectly. Inconsistent configuration may cause problems.
Run Code Online (Sandbox Code Playgroud)
我在导航控制器场景中拥有的所有数据都不会显示。我尝试将其放置到 SceneDelegate,但没有帮助:
self.window?.rootViewController = navigationVC
self.window?.makeKeyAndVisible()
Run Code Online (Sandbox Code Playgroud)
我应该怎么做才能解决这个问题?
我也在处理这个错误。如果有任何进展我会在这里更新。我还面临另一个例外:
_UINavigationBarContentViewLayout valueForUndefinedKey:
this class is not key value coding-compliant for the key inlineTitleView.
Run Code Online (Sandbox Code Playgroud)
应该是iOS 16的bug,与Xcode版本无关。
还有很多其他人也遇到过这个问题:https ://developer.apple.com/forums/thread/714278
临时解决方案是使用代码而不是故事板来创建导航控制器。
| 归档时间: |
|
| 查看次数: |
3809 次 |
| 最近记录: |