开发者

Handling touch in two diffent views

I Have two views(scrollview and topview) on a window each of frame (0,0,320,480),

[window addsubview:scrollview];
[window addsubview:topview];

In scrollview i am doing zooming,pinching operation and in topview view i have placed some buttons. My problem is i want to handle touches to both views like user can do pinching in scrollview and also he mu开发者_如何学Gost be able to press buttons on topview. ( I am not adding topview on scrollview because these buttons are fixed if i add they also scroll).

I am getting touches to only one view at a time. How to handle touches to both subviews any idea.

Thanks,


What are you having in top view? only buttons?

If yes, then remove them from top view and place them directly on to the window and bring them to front.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜