/ Published in: Objective C
Expand |
Embed | Plain Text
-(IBAction)btnBuyTapped:(id)sender{ lblBuy.hidden=imgVBuy.hidden=btnBuy.hidden=YES; btnMinus.hidden=btnPlus.hidden=lblQty.hidden=NO; lblQty.text=@"1"; [self animationCode:YES]; } // the main code for flip - from left/Right. -(void)animationCode:(BOOL)boolVal{ CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationTransition:(boolVal)?UIViewAnimationTransitionFlipFromLeft:UIViewAnimationTransitionFlipFromRight forView:vAnimation cache:YES]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:0.25]; [UIView commitAnimations]; }
You need to login to post a comment.
