开发者

How to restrict CATransition to a specific view instead of the whole view?

开发者 https://www.devze.com 2023-03-24 11:50 出处:网络
My CATransition code is working fine, but I need that animation limited in width so how to manage this Animation or how to restrict CATransit开发者_如何学编程ion to a specific view?It isn\'t clear wha

My CATransition code is working fine, but I need that animation limited in width so how to manage this Animation or how to restrict CATransit开发者_如何学编程ion to a specific view?


It isn't clear what you're asking.

What are you applying the transition to? What animates, and what do you want to do differently?

If you apply a transition to a view, it will change that view and everything contained in the view. The only way to not animate a subview (if that's what you're asking) is to make it NOT a subview, and promote it to a sibling of the view that you are animating.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号