Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jagatnibas

macrumors regular
Original poster
Jul 28, 2008
126
0
Hi all,

Can i stretch an image somehow ? i want to drag an image and rotate to by putting the other end in center ?

any helps are welcome

thanks and regards
Jagat
 
It depends how you're displaying the image. If you're using CGContextDrawImage() then it'll draw the image stretched to the rect you pass. If you're using a UIImageView then you can change the view's contentMode to UIViewContentModeScaleToFill I believe.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.