Flip UIImageViews for Right to Left Languages

internationalization, ios

Solution

iOS 9 includes the `imageFlippedForRightToLeftLayoutDirection` method that you can use, that automatically flips the image in a UIImageView when in an RTL localization.

Problem

iOS automatically flips the entire `ViewController` when using a RTL language like Arabic and does a great job with most of the layout, especially text. The default behavior is to flip the layout but leave `UIImageViews` the same orientation (since you generally don't want to reverse images). Is there a way to specify that some images should be flipped (such as arrows) when the phone is set to a RTL language?

Original source