Removing empty space, if the section header is hidden in the UICollectionView

At last, I found an answer for my question. I have missed something. Anyway sorry for other fellow users. I set the header height and width inside the below method till now as @san said. – (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath But It is not the correct method to set the frame size … Read more

Add a simple UIView as header of UICollectionView

In swift like below Register Header View collectionView.register(HeaderView.self, forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: “headerView”) In UICollectionViewDataSource func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView { let headerView = collectionView.dequeueReusableSupplementaryViewOfKind(UICollectionElementKindSectionHeader, withReuseIdentifier: “headerView”, forIndexPath: indexPath) headerView.frame.size.height = 100 return headerView } Important is that you are supply the flow layout with the header size flowLayout.headerReferenceSize = … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)