xib文件报错

2017-07-25  本文已影响15人  小苗晓雪

xib 中, 没有对File's Owner 的Outlets view 进行绑定, 导致在父视图中插入子视图时出错, 在IB中拖拽Files' Owner到view, 步骤如下所示:

错误图示 正确
Terminating app due to uncaught exception 
'NSInternalInconsistencyException', 
reason: '-[UIViewController _loadViewFromNibNamed:bundle:] 
loaded the "InquireCustomerFeedBackDetailViewCtrl" nib
 but the view outlet was not set.'

愿编程让这个世界更美好

上一篇 下一篇

猜你喜欢

热点阅读