How to force a view to render itself?

前端 未结 4 1349
自闭症患者
自闭症患者 2020-12-13 07:24

In my app I have a number of small subviews. When the user taps a subview, I place one separate view over top of the tapped subview (same size) and then animate this separa

4条回答
  •  臣服心动
    2020-12-13 07:59

    An Apple engineer provided an alternate recommended solution. Use 2 UIViews, one small and one large, with the larger one with an alpha of 0. Render both, the set the frame of the big one small, and have the animation cross fade as well as zoom both sizes from small to big.

提交回复
热议问题