Reputation: 1531
I am using UIView animateWithDuration method to flip the UILabelView itself but it doesn't show any animation until I provide some code in the animations block. Here's the code.
No effect
[UIView animateWithDurations:5. delay:0.
options:UIViewAnimationOPtionTransitionFlipFromLeft animations: ^{}
completion:nil];
Fades the View
[UIView animateWithDurations:5. delay:0.
options:UIViewAnimationOPtionTransitionFlipFromLeft
animations: ^{self.lblEvent.alpha = 0.5;} completion:nil];
My question is when the options parameter will effect?
I tried the below code too but it flips the view and removes from the controller. Can't I provide the same view?
[UIView transitionFromView: self.lblEvent toView:self.lblEvent
duration:2.0 options:UIViewAnimationOPtionTransitionFlipFromLeft
completion:nil];
Upvotes: 1
Views: 654
Reputation: 11770
Try this one:
[UIView transitionWithView:your_view_to_animate duration:1. options:(UIViewAnimationOptionTransitionFlipFromBottom) animations:^{
} completion:^(BOOL finished) {
}];
Good Luck!
Upvotes: 2