0

Possible Duplicate:
The zoom for uiscrollview isn’t working

I posted a question yesterday, because the zoom for the UIScrollView isn't working. When pressing on a button, a UIScrollView appears, that contains an UIImage, but the problem is that I can't zoom by clicking or double-clicking on the image. I made a debug and the method

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

doesn't get called. The question can be found here

Sorry for asking the same question again. Thank you in advance. I wish you all the best!

4

2 回答 2

0

尝试将图像视图的属性 UserInteractionEnabled 更改为 YES。可能会有所帮助

于 2012-11-27T08:16:31.700 回答
0

你是否设置了scrollview的委托。首先检查一次......如果委托返回nil,则没有任何反应......所以首先设置UIScrollview的委托。

于 2012-11-27T08:29:35.993 回答