Having problems allowing interaction in UIView animation

前端 未结 5 430
野趣味
野趣味 2021-01-03 12:23

I have the following block of code to fade out an introView(UIView)

// Hide intro view after 5 seconds
[UIView animateWithDuration: 1.0
          delay: 5.0
         


        
5条回答
  •  悲哀的现实
    2021-01-03 13:00

    This won't work in iOS 3.2 since Blocks are only available in iOS4
    you will have to use the standard animation techniques, in a separate thread so that you don't block the interface

    [UIView beginAnimations:nil context:nil];
    
    [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromLeft forView:view cache:YES];
    
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    
    [UIView setAnimationDuration:1.0];
    
    [view1 setHidden:TRUE];
    
    [UIView commitAnimations];
    

提交回复
热议问题