I have a collection view and I want to expand cell when clicked. Cell should be expanded to full screen and change to another UIViewController
. I want transition to be smooth however, I don't know how to change collectionview cell to UIViewController
via expanding it. I implemented custom UIViewControllerAnimatedTransitioning
and UIViewControllerTransitioningDelegate
. What should I write in animateTransition
in order to achieve what I wanted?
Asked
Active
Viewed 550 times
3

CodeChanger
- 7,953
- 5
- 49
- 80

AfterCoder
- 731
- 2
- 6
- 22
-
try this method - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath – Jigar Nov 17 '16 at 10:51
-
I know how to trigger animation but I do not know how to write animation. – AfterCoder Nov 17 '16 at 10:53
-
try modalTransitionStyle and modalPresentationStyle – Jigar Nov 17 '16 at 10:55