i am newbie in iOS Development i want an image gallery with UIScrollview and i want to Zoom an image when Zoom Button Was pressed initial my Scrollview Size like as
self.zoomScroll.frame=CGRectMake(10, 45, 300, 270);
and i add a Zoom Button in a My View When it is Pressed i set Scrollview Size as
self.zoomScroll.frame=CGRectMake(10, 40, 300, 400);
then scrollview is Shown in new Size but the image inside the Scrollview is in initialSize means image not take a new Size. and my image view Size is like as
bigImage.bounds=CGRectMake(0, 0, self.zoomScroll.frame.size.width +10.0f, self.zoomScroll.frame.size.height);
bigImage.frame=CGRectMake(index * self.zoomScroll.frame.size.width, 0, self.zoomScroll.frame.size.width, self.zoomScroll.frame.size.height);
and here my imageview is not a globally declared it is locally declare so i am not able to use scrollviewZoom method please give me solution for Zoom an image when Zoom button pressed.