开发者

Trying to draw inside of a uiscrollview

We would like to be able to开发者_如何学C display a large picture inside a uiscrollview which can be scrolled using two finger, and then allow the user to draw on it using one finger.

We've already made an app where you can display a background image and then draw on top of it on another uiview. We basically want to incorporate this with the uiscrollview, but we're not sure if it's possible/how to do that. If we set the uiscrollviews minimum number of touches to 2 (like the answer here Simulating drags inside a scrollview), could we then use touchesBegan, touchesEnded etc for drawing, and inside of them just check to see if it was one finger and if it was draw?

Thanks


Just in case anyone else wanted to try this, it does work! We didn't really encounter any problems doing this. As long as you tell the scrollview to only respond to two finger actions it works fine.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜