loaded the "xxx" nib but the view outlet was not set 错误的解决办法。

简介: loaded the "xxx" nib but the view outlet was not set 错误的解决办法。

'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXXView" nib but the view outlet was not set.'


查书才知道,没有做nib文件到xxxViewControler程序的关联,特此记录下来:


1, 打开nib文件


2, 点击"File's Owner", 按command+4,设置Class为xxxViewControler


3, 按Control+"Files's Owner", 里面有个默认的IBOutlet变量view, 看一下后面有没有做关联,如果没有就拉到下面的View和视图做个关联

目录
相关文章
|
7月前
|
JavaScript
vue项目router报NavigationDuplicated: Avoided redundant navigation to current location: “/result/3“错误
vue项目router报NavigationDuplicated: Avoided redundant navigation to current location: “/result/3“错误
24 0
vue项目router报NavigationDuplicated: Avoided redundant navigation to current location: “/result/3“错误
|
7月前
|
API Windows
Qt-解决异常报错“QAxBase::setControl: requested control XXX could not be instantiated”
Qt-解决异常报错“QAxBase::setControl: requested control XXX could not be instantiated”
119 0
|
程序员 iOS开发 开发者
iOS开发:报错‘Unknown class ViewController in Interface Builder file’解决方法
在iOS开发过程中,会遇到一些比较常见的错误,尤其是刚入门的初级开发者,如果不熟练的话就会出错,本篇博文就来分享一个常见的问题,即报错‘Unknown class ViewController in Interface Builder file’的解决方法。
292 1
iOS开发:报错‘Unknown class ViewController in Interface Builder file’解决方法
|
程序员 Android开发 iOS开发
iOS开发:Xcode报错“Could not insert new outlet connection:Could not find any...”问题的解决方法
在iOS开发过程中会遇到各种各样的问题,有些时候会遇到一些莫名其妙的报错问题,而且会觉得很无厘头,尤其是苹果的Xcode会出现各种不可抗拒的情况,网速不好会影响Xcode的正常使用,时间长不打开Xcode也会出现问题,一般这种情况下果断关闭Xcode再重新打就好了,那么本篇博文就来分享一下需要关闭Xcode再重新打开就好的情况,一般情况下在没有错误操作的时候还会出现这种错误就一定是Xcode的问题,那么接下来就来说说这种情况。
150 0
|
Java
Preference跳转activity出错Unable to find explicit activity class
使用Preference可以非常方便的实现类似设置页面这样的菜单布局,甚至可以不需写java代码。那么可以在Preference中直接添加页面跳转么?其实非常简单,在Preference添加intent标签即可
473 0
|
数据安全/隐私保护
一步一步学Edit Control控件的用法
Edit Control控件最常见的用法,一般有有以下几种: 1、  显示默认的字符串; 2、  接受用户输入的字符串。 3、  作为密码框接受用户输入的字符串。
1069 0
|
Kotlin
【错误记录】布局组件加载错误 ( Attempt to invoke virtual method ‘xxx$Callback android.view.Window.getCallback()‘ )
【错误记录】布局组件加载错误 ( Attempt to invoke virtual method ‘xxx$Callback android.view.Window.getCallback()‘ )
281 0
No injector for custom defined data type的解决办法
No injector for custom defined data type的解决办法
224 0
No injector for custom defined data type的解决办法
How does model reference pass from app view to master view
Created by Wang, Jerry, last modified on May 21, 2015
How does model reference pass from app view to master view
why our extension project didn't load S3 view and controller
Created by Wang, Jerry, last modified on May 20, 2015
92 0
why our extension project didn't load S3 view and controller