My answer uses Interface Builder, but I donβt know another way.
After starting UIView, execute CGAffineTransform as such:
self.view.transform = CGAffineTransformMakeScale(-1, 1);
Check the documentation for CGAffineTransform. You may also have to translate the presentation a bit, although I think it should be fine.
"-1" inverts the x coordinate system there. Whenever you introduce a new view programmatically, it will work as you hope.
Hooray!
source
share