Welcome to mirror list, hosted at ThFree Co, Russian Federation.

UIButton+Orientation.mm « Maps « iphone - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ba0a7c7c83c22ede8c95e5d17a3f2b8961bbb52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#import "Common.h"
#import "UIButton+Orientation.h"

@implementation UIButton (Orientation)

- (void)matchInterfaceOrientation
{
  if (isInterfaceRightToLeft())
    self.imageView.transform = CGAffineTransformMakeScale(-1, 1);
}

@end