Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Found a solution to the problem, I added the following two lines after the code that posted above:

CGAffineTransform xform = CGAffineTransformMakeRotation(-M_PI / 2);
image_view.transform = xform;