0
我有一個UIView
嵌套在UIView
。當我爲內部視圖的框架和alpha設置動畫時,外部視圖中的觸摸會被取消。我能阻止這種情況發生嗎?如何在不取消觸摸的情況下啓動動畫?
我有一個UIView
嵌套在UIView
。當我爲內部視圖的框架和alpha設置動畫時,外部視圖中的觸摸會被取消。我能阻止這種情況發生嗎?如何在不取消觸摸的情況下啓動動畫?
您可以使用block based animation方法。
[UIView animateWithDuration:1.0
delay:0.0
options:UIViewAnimationOptionAllowUserInteraction
| UIViewAnimationOptionCurveEaseInOut
animations:^{
//your animation code
} completion:^(BOOL finished){
//your code when animation finished..
}];
你最喜歡動畫嗎?你在使用UIView的塊動畫方法嗎? – Christian 2011-04-22 17:57:41