Sounds like the same problem i had. Make sure you set the contentSize property of the scrollview. That's what fixed it for me.
Yes!
Here is what i did and it works perfectly fine for me now. Make sure that your custom view's frame is larger than scrollview's frame. This is what was stopping my scroller from getting displayed.
Thank you all.
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:[MyView frame]];//(0,0,320,160)
scrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
[MyView setFrame:CGRectMake (0, 0, 320, 170)];
MyView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
scrollView.contentSize = MyView.bounds.size;
scrollView.bounces = YES;
scrollView.bouncesZoom = YES;
scrollView.scrollEnabled = YES;
scrollView.minimumZoomScale = 0.5;
scrollView.maximumZoomScale = 5.0;
scrollView.delegate = self;
[scrollView addSubview: MyView];
[self.view addSubview:scrollView];
Thanks and Regards,
Shrunga