loaded the "XXXView" 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和視圖做個關聯

 

原文地址;http://blog.sina.com.cn/s/blog_8f38d3410101a1rb.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM