开发者

How to get the coordinate of a touch event

开发者 https://www.devze.com 2023-01-11 09:42 出处:网络
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/

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

精彩评论

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