ios - How do I place a PFQueryCollectionView in a scrollview? -


i trying place pfquerycollectionview in scroll view, keeps crashing error [uicollectionviewcontroller loadview] instantiated view controller identifier "first" storyboard "main", didn't uicollectionview.' cell identifier correct storyboard id. think know wrong. trying place view controller inside scroll view, instead retrieving pfquerycollectionview class.

scroll view

 override func viewdidload() {     super.viewdidload()      let page: pageone = self.storyboard?.instantiateviewcontrollerwithidentifier("first") as! pageone 

collection view

class pageone: pfquerycollectionviewcontroller{  override func collectionview(collectionview: uicollectionview, cellforitematindexpath indexpath: nsindexpath, object: pfobject?) -> pfcollectionviewcell? {     var cell: pfcell = collectionview.dequeuereusablecellwithreuseidentifier("cell", forindexpath: indexpath) as! pfcell     cell.name.text = object!["name"] as? string     return cell }   } 


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -