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

{app.params.name}} {app.params.name}} {app.params.name}}

解决办法:

1. 创建控制器. File->New File->Iphone OS->Cocoa Touch Class->UIViewController subclass;
2. 创建xib. File->New File->Iphone OS->User Interface->View XIB
3. 绑定controller和view. 用Interface Builder打开xxx.xib, 点击Files' Owner, 在Identity Inspector里面的Class Identity, 选择Step 1创建的控制器类, 接着拖拽File's Owner到View中, 选择Outlets->view.先选中file's owner(这个很重要)

来源:http://blog.csdn.net/thebesttome/article/details/7799893


版权声明

davidzhang 创作并维护的 Gowhich 博客采用 创作共用保留署名-非商业-禁止演绎4.0国际许可证。

本文首发于 Gowhich 博客( https://www.gowhich.com ),版权所有,侵权必究。

本文永久链接: https://www.gowhich.com/blog/114

comments powered by Disqus