iOS CollectionViewCell扩展Segue

时间:2017-01-24 10:31:55

标签: ios swift uistoryboardsegue

我如何编写自定义segue(类似于iOS GroupOn app segue,当您点击交易时)?

我们说我有2个ViewControllers:FirstViewController& SecondViewController。

FirstViewController有一个集合视图,其中每个单元格都有一个图像和一个标签。当您点击一个单元格时,它会转到SecondViewController,它会详细显示信息。图像位于SecondViewController的顶部,详细信息如下。

我想知道如何编写perform方法,以及如何在viewcontroller

时编写自定义动画

1 个答案:

答案 0 :(得分:1)

对于两个ViewControllers之间的动画,这是一个很好的教程:https://www.raywenderlich.com/110536/custom-uiviewcontroller-transitions

您可以在此处使用许多转场:https://github.com/onmyway133/fantastic-ios-animation/blob/master/Animation/transition.md