You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
in objective-c
{
return CGSizeMake(320, 120);
}
not works
in swift:
func collectionView(collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
not works
:(
only i can change size item with this code:
let layout:APLExpandableSectionFlowLayout = self.collectionView.collectionViewLayout as! APLExpandableSectionFlowLayout
layout.itemSize = CGSizeMake(self.view.frame.size.width, 120);
layout.minimumLineSpacing = 4
layout.scrollDirection = .Vertical
layout.sectionInset = UIEdgeInsetsMake(8, 8, 0, 8);
but i need to do by NSIndexPath