'-[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