Mirror a UIView with the iPhone API

January 6th, 2009

Just a very brief note on how to mirror UI elements on the iPhone with Cocoa. You need to apply a CGAffineTransform to flip the element horiziontal or vertical, like in the examples:

view.transform = CGAffineTransformMakeScale(-1, 1);

Leave a Reply