簡體   English   中英

iOS:了解有關UIView上的動畫啟動和動畫結束的信息

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM