How to do a flip animation between more than two UIViews?

后端 未结 4 600
闹比i
闹比i 2020-12-29 17:26

I have animation code in a class that extends the UIView:

// Start Animation Block
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimati         


        
4条回答
  •  生来不讨喜
    2020-12-29 18:05

    Apple have a pretty good tutorial on view transitions here. Other than the way they implement them you can also look at using a UINavigationController which manages a bunch of views and transitioning between them.

    Essentially you need to manage the transition in the superview rather than the view - the superview can know who it's currently displaying and who's next.

提交回复
热议问题