UICollectionView - Transition with magnification like iOS7 calendar

I am trying to replicate zoom transitions to the details of iOS7 applications (and photos) in my application using UICollectionView.

I have a UICollectionView grid with flowlayout, and I set a new layout with a much larger cell size to get a transition with an increase.

My problem is the contents of the cell. In the calendar application, when you click on a month in the year view, the contents of the month cell also expand to a month. How to get it? I researched the solutions, since this scaling down to the details seems to be an interface paradigm for Apple extending for iOS7, but there is no demo application or tutorial.

+6
source share
1 answer

There is no ready-made solution, but the new iOS 7 API will allow you to easily achieve this. You must use custom transitions between your view controllers to get this, this will allow you to control the transition between you and control the controllers in any way. Here is a good article about it. http://www.doubleencore.com/2013/09/ios-7-custom-transitions/

To scale a cell, you can, for example, take a picture and then use Core Animation to scale it to full screen while a detailed view controller is displayed.

+4
source

Source: https://habr.com/ru/post/954586/


All Articles