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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -