views:

190

answers:

2

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..

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

OR

imageview.transform = CGAffineTransformMakeScale(1.05, 1.05);
mihirpmehta
Thanks!Can I scroll it after zooming it?
iSharreth
A: 

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.

Biranchi