[英]iOS: get informed about a started animation on a UIView and the animation end
我想知道是否有一種方法可以通知動畫已經在UIView上開始並結束了。 類似於委托方法(didBeginAnimating之類)。
我知道我可以在視圖層上檢查animationkey,但這不是我想要的。 我需要在動畫開始時關閉層陰影,並在動畫結束時再次打開。 問題在於,該動畫是從不知道該對象的另一個對象調用的。
有什么想法嗎 ?
有一個名為+ (void)setAnimationWillStartSelector:(SEL)selector
委托方法(來自UIView類參考: https : //developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/UIView/UIView.html#/ / apple_ref / occ / clm / UIView / setAnimationWillStartSelector :)
這就是你想要的嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.