How can I zoom an image in my iPhone application?

I had an image in image in my iPhone application. The text in the image is not readable as it is very small. How can I zoom it at run time?

Anyone please help..


imageview.frame = CGRectMake(imageview.frame.origin.x, (imageview.frame.origin.y), imageview.frame.size.width + 20, imageview.frame.size.height + 20);


imageview.transform = CGAffineTransformMakeScale(1.05, 1.05);

You can place the image on a ImageView , which is added to the ScrollView. And then you can use the scroll view delegate method

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView

for zooming and scrolling.

Need Your Help

Reading Multiple lines(different lengths) from file in c

c arrays file file-io

I want to load following contents of a file into an array.

perl: using push() on an array inside a hash

arrays perl debugging push

Is it possible to use Perl's push() function on an array inside a hash?