简体   繁体   中英

Change UICollectionViewCell size when a cell is tapped

I have drawn UICollectionView like this . When the user taps on a cell I want it to look something like this

Basically I want to enlarge the tapped cell and the other cells will move in the next row.

Any suggestions how to implement this ??

Thanks in advance

您需要UICollectionViewLayout子类,而不仅仅是使用UICollectionViewFlowLayout

I create new git repository for your problem. Please try it https://bitbucket.org/banumelody/uicollectionview-resize-cell-on-tap

I hope it can help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM