I have created 2 collectionView in my viewController
SchoolActivitycollectionView = UICollectionView(frame: CGRectMake(0, 0, self.view.bounds.width, self.view.bounds.height), collectionViewLayout: flowLayout) PrivateActivityCollectionView = UICollectionView(frame: CGRectMake(0, 0, self.view.bounds.width, self.view.bounds.height), collectionViewLayout: flowLayout) PrivateActivityCollectionView.delegate = self PrivateActivityCollectionView.dataSource = self SchoolActivitycollectionView.delegate = self SchoolActivitycollectionView.dataSource = self
but the problem is in the datasource
> func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
if collectionView == SchoolActivitycollectionView { ..
>
i tried to seperate this 2 collection view i cant. I print out the (collectionView == SchoolActivitycollectionView
) it shows false .
i have tried isEaqual()
too .
I just cant seperate them ...so i cant set this 2 collectionview independently... How can i give set these 2 collectionview up??