1
我試圖加載筆尖,而是不斷收到以下錯誤:「」包,因爲包尚未加載 - 空包名稱
-[NSViewController initWithCoder:] could not instantiate an NSViewController for a nib in the "" bundle because the bundle has not been loaded.
包名稱缺少......會是什麼導致?
func collectionView(collectionView: NSCollectionView, itemForRepresentedObjectAtIndexPath indexPath: NSIndexPath) -> NSCollectionViewItem
{
let item = collectionView.makeItemWithIdentifier("MyNib", forIndexPath: indexPath) // Crashes here
}
感謝
顯示您用於實例化NSViewController的代碼... –
添加了代碼,這是相當標準的東西。 – Chris