How to flip an individual UIView (without flipping the parent view)

前端 未结 6 522
一整个雨季
一整个雨季 2020-11-27 15:16

This is an iPad project where I have a UIView with several subViews, and I am trying to animate one of this UIViews using [UIView transitionFromView:toView:duration:options:

6条回答
  •  甜味超标
    2020-11-27 15:38

    Use a container view to hold your subviews, and make the container view the same size as your subview that you're trying to animate.

    So, you can setup your views like this.

    self.view-> "a container view" -> subviews

提交回复
热议问题