开发者

How to get the coordinate of a touch event

How do I determine where the开发者_JAVA技巧 user touched in my view?


see - (UIColor*) getPixelColorAtLocation:(CGPoint)point found here: https://web.archive.org/web/20181012154604/http://www.markj.net/iphone-uiimage-pixel-color

I would rewrite it as a category method on UIImage.


CGPoint origin = view.frame.origin;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜