我找到了一個開源項目(link here),我需要在我的下一個項目中實現它。 問題是,該框架設置爲一個故事板項目,我不會使用它。 我在將此項目轉換爲非故事板,非.xib項目時遇到問題。 我在another SA question和gitpage of this framework的評論中已經詢問過一些幫助,但時間在縮短。UICollectionView - 將故事板項目移植到沒有IB項目
即使類/筆尖已註冊,我仍然收到此錯誤:*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier RPSlidingCellIdentifier - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
。
向正確的方向推進將不勝感激。爲了您的方便,我將我的測試項目添加到我的dropbox。
Cell類獲取RPSlidingMenuViewController.m viewDidLoad中註冊
如果環境告訴你註冊類或筆尖,然後嘗試在'UICollectionViewController'中尋找'registerClass'或'registerNib'方法 – 2014-09-01 10:56:17
@Jasper Pol代碼在我身邊正常工作檢查截圖鏈接: --http://postimg.org/image/7lkecl2vx/ – Shekhu 2014-09-01 11:13:45
@Aiden你剛下載我的Dropbox項目並編譯它? – Jasper 2014-09-01 11:47:42