“加载的笔尖,但视图出口未设定”例外 [英] "loaded nib but the view outlet was not set" exception

查看:123
本文介绍了“加载的笔尖,但视图出口未设定”例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 UINavigationController 。我有两个视图正在以编程方式创建。当第一视图按下 UIButton 时,第二视图应该进入前景。

I am trying to use UINavigationController. I have two views which are being created programmatically. When a UIButton is pressed on the first view, the second view should come to foreground.

但这里的应用程序崩溃与例外:

But here application crash with exception:


加载笔尖,但视图出口没有设置

loaded nib but the view outlet was not set

这可能是什么原因以及如何解决它。

What can be cause of this and how to resolve it.

推荐答案

follo以下步骤


1)打开你的xib文件,然后右击文件所有者并拖动到您的第一个视图


2)然后将该视图与查看

希望你会得到它...

hope you will get it...

这篇关于“加载的笔尖,但视图出口未设定”例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆