文章目录
  1. 1. 摇一摇动画

摇一摇动画

\

\

//                             [UIView animateWithDuration:0.3

//                                                   delay:0.0

//                                                
options:UIViewAnimationOptionRepeat ||
UIViewAnimationOptionCurveEaseInOut

//                                              animations:^{

//                                                 
self.shakeShadawImgView.hidden = YES;

//                                                  [UIView
setAnimationRepeatCount:7];

//

//                                                 
self.shakeMobileImgView.layer.transform =
CATransform3DRotate(_shakeMobileTransform, M_PI * -0.02, 0, 0, 1);

//                                                 
self.shakeMobileImgView.layer.transform =
CATransform3DRotate(_shakeMobileTransform, M_PI * 0.02, 0, 0, 1);

//                                              }completion:^(BOOL
isFinished){

//                                                 
self.shakeMobileImgView.layer.transform = _shakeMobileTransform;

//                                                  [[self
navigationController] setNavigationBarHidden:NO animated:YES];

//                                                  //弹出中奖结果页面

//                                                  [UIView
animateWithDuration:0.5

//                                                                       
delay:0.2

//                                                                     
options:UIViewAnimationOptionCurveEaseIn

//                                                                  
animations:^(void){

//                                                                      
self.awardResultView.hidden = NO;

//                                                                      
self.awardResultView.frame = CGRectMake(0, _awardResultFrame.origin.y -
65, 320, 160);

//                                                                      
self.getAwardImgView.hidden = NO;

//                                                                      
self.enableShake = NO;

//                                                                   }

//                                                                  
completion:^(BOOL finished){

//                                                                      
self.okBtn.hidden = NO;

//                                                                      
[UIView animateWithDuration:0.5

//
                                                                                           
delay:0.0

//
                                                                                         
options:UIViewAnimationOptionCurveEaseIn

//                                                                                       
animations:^(void){

//                                                                                            

//                                                                                           
self.okBtn.frame = CGRectMake(82,
self.mobileShadawImgView.frame.origin.y + 40, 155, 41);

//                                                                                       
} completion:^(BOOL finished){

//                                                                                            

//                                                                                       
}];

//                                                                  
}];

//                                             
}];
\





文章目录
  1. 1. 摇一摇动画