I had to animate few button in such a way that it looks like they are rotating onto screen from below and managed to do that. In order for the solution to work I needed to change buttons orientation on viewDidLoad like this:
for (UIButton* button in self.shareButtons) {
button.imageView.image = [UIImage imageWithCGImage:button.imageView.image.CGImage
scale:1.0 orientation: UIImageOrientationDownMirrored];
}
It all works fine, but when a touch is catch within a button it then cancel this orientation change and button is "downmirrored" as caused by the animations.
How can I prevent/avoid it?
Thanks in advance.