When I captured the screen and save it as UIImage, the size will be (640x1136) , What I need exactly to set that UIImage center of plain white UIImage to post it into instagram with no crop!
I used this code for resize the UIImage but it doesn't make what I need
from that I used this code:
UIImage *thenew = [NewImg resizedImageWithContentMode:UIViewContentModeScaleAspectFit bounds:CGsizeMake(612,612) interpolationQuality:kCGInterpolationHigh];
Hope you help me with this one
SOLUTION By Logan
Your image resizing is fine, you just need to combine it with a square white background image. Use something like this: https://stackoverflow.com/a/1358967/2611971
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.