Question: I have a Storyboard with a Scrollview with Myview class extended from UIScrollview which implements a method to paint some rects with quartz2d.

I'm trying to implement zoom in/out in that Scrollview but theres no way and I can't find the answer anywhere. 

I have this in my controller (UIwindow): 

```
- (void)viewDidLoad {

[myscrollview setScrollEnabled:YES];
[myscrollview setPagingEnabled:YES];
myscrollview.clipsToBounds = YES;
myscrollview.minimumZoomScale= 1.0;
myscrollview.maximumZoomScale=6.0;
[myscrollview setZoomScale:myscrollview.minimumZoomScale];
}

- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
   return myscrollview;
}

```

But it doesnt work. Where can I find some information about implement zoomin/out in iOS 5.1?

Thanks.

Answer: 
try after setting delegate

```
 myscrollview.delegate = self;

```
I assume you set your delegate like this: `myscrollview.delegate = self;`

In your `viewForZoomingInScrollView:` delegate method you have to return a view you like to zoom an not the scrollview itself.