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
Post a Comment