我一直在控制台中收到此消息:
Failed to set (translucent) user defined inspected property on (UINavigationController):
[<UINavigationController 0x7fbd64063e00> setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key translucent.
当我在ViewController中使用此代码时:self.navigationController?.navigationBar.translucent = false
我的ViewController嵌入在NavigationViewController中,是TabBarController中tab的一部分。我将ScrollView放在ViewController的View中。我在ScrollView中放了一个图像,然后设置它的大小来填充整个ScrollView。当我将NavigationBar半透明设置为false时,图像覆盖整个ScrollView,但是当我没有设置它时,图像会在ScrollView顶部下方的某个空间处开始。我想知道我该怎么做?