ios - UICollectionView functions not found using Swift in Xcode 6.1? -


my app defined class , gets error: reloaddata() not found in self.collectionview.reload(). other uicollectionview functions not found. seems confused 2 collectionview functions below. how can fix this?

class viewcontroller: uiviewcontroller, uicollectionviewdatasource, uicollectionviewdelegate, uicollectionviewdelegateflowlayout{  var assetcollection: phassetcollection! var photosasset: phfetchresult!  @iboutlet weak var collectionview: uicollectionview!  override func viewwillappear(animated: bool) {     //fetch photos collection     self.navigationcontroller?.hidesbarsontap = false     self.photosasset = phasset.fetchassetsinassetcollection(self.assetcollection, options: nil)      self.collectionview.reloaddata()   // error: '(uicollectionview, numberofitemsinsection: int) -> int' not have member named 'reloaddata' }  func collectionview(collectionview: uicollectionview, cellforitematindexpath indexpath: nsindexpath) -> uicollectionviewcell{ ...}  func collectionview(collectionview: uicollectionview, numberofitemsinsection section: int) -> int{...} 

change

@iboutlet weak var collectionview: uicollectionview! 

to

@iboutlet weak var collectionview: uicollectionview! 

and should work!


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -