I have this line:
imgView.transform = CGAffineTransformMakeScale(-1, 1);
I want to flip my UIImageView horizontally and tried this line above, however it is giving me a linker error and can’t work out the issue.
Can someone please help me fix this or find an alternative way of flipping my UIImageView.
Thanks.
Make sure you are linking against CoreGraphics. In your project, go to Build Phases and look under “Link Binary with Libraries” and check for “CoreGraphics.framework”.
If that is not the issue, pls copy/paste the linker error into your question.
Hope that helps.