Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect end of implicit animation when changing the UICollectionViewLayout

I am currently working with UICollectionView and after changing the layout from one to another with setCollectionViewLayout:animated: I want to execute some code upon the completion of the animation. Any idea how to achieve that?

Cheers,

like image 428
Stefan Ivanov Avatar asked Nov 30 '25 20:11

Stefan Ivanov


1 Answers

Just for the record, there is now a -setCollectionViewLayout:animated:completion: method on UICollectionView, introduced in iOS 7.

like image 123
George WS Avatar answered Dec 02 '25 12:12

George WS



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!