Skip to content

Instantly share code, notes, and snippets.

@phynet
Created May 26, 2016 11:44
Show Gist options
  • Save phynet/649721611f706e99cfa7276b98db8c12 to your computer and use it in GitHub Desktop.
Save phynet/649721611f706e99cfa7276b98db8c12 to your computer and use it in GitHub Desktop.
Switch image to the right side of the button - iOS
//Switch image to the right side of the button
self.mapButton.transform = CGAffineTransformMakeScale(-1.0, 1.0);
self.mapButton.titleLabel.transform = CGAffineTransformMakeScale(-1.0, 1.0);
self.mapButton.imageView.transform = CGAffineTransformMakeScale(-1.0, 1.0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment