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;
精彩评论