1

Hello in my app i emulated slide view's and use this code

    [UIView beginAnimations: nil context:nil];
    [UIView setAnimationDuration: 0.5];
    [UIView commitAnimations]; 

unfortunately new view intercepts touch before it takes window : if i make double click,with second click work new view I check frame of this view it equal frame of window

if i turn off animation it work correct. but i need animation effects

Please help me to find right decision )

4

1 に答える 1

0

UIViewアニメーションにブロックを使用してみてください。最初に、新しいビューのタッチを無効にします。次に、アニメーション化し、完了ブロックでタッチを有効にします。

//disable touch on the slide view
[UIView animateWithDuration:0.5
                         animations:^{
                            //.. animate here
                         }
                         completion:^(BOOL finished){ 
                            //enable touch on the new view
                         }]
于 2012-10-11T07:53:29.417 に答える