I wanted to rotate the UIView on its horizontal axis 360 degrees, and then update the content in the view. I was looking for solutions about this. Found here a couple here. This is what I went out with.
[UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionTransitionNone animations:^{ self.tableView.layer.transform = CATransform3DMakeRotation(M_PI,1.0,0.0,0.0); } completion:^(BOOL finished){ NSLog(@"Finished first pi"); [UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionTransitionNone animations:^{ self.tableView.layer.transform = CATransform3DMakeRotation(M_PI,1.0,0.0,0.0); } completion:^(BOOL finished) { NSLog(@"Finished second pi"); }]; }];
This flips the view, but only 180 degrees. I want him to roll over again so that I can see the view normally.
Both of my NSLogs are displayed one by one. I'm sure something is missing here. Any help would be helpful.
thanks
source share