forum

Home / DeveloperSection / Forums / How to crop image in rectangle shape in iOS?

How to crop image in rectangle shape in iOS?

Anonymous User 1657 20-Jan-2016

I am new in iPhone app development, so I have getting problem on image cropping.
I want to crop an image in rectangle shape, I google it and find some solution for that and using this code:

CGRect cropRect = CGRectMake(0, 0, 70, 70);
CGImageRef imageRef = CGImageCreateWithImageRect(self.OriginalImage, cropRect);

but I don't understand that how can I display imageRef into our view controller.
Please help me.


Updated on 20-Jan-2016
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By