How to detect objects from Image Processing in iOS

2019-03-06 21:01发布

问题:

I have a image and the image have in it A glass a cup , two spoon.

This image is showing on the iPad. Now I want when user touch the spoon only, the spoon color will become green rest of the image remain same.

I have no Idea how to do this? And where to start?

Any Idea or suggestions would be highly welcome.

回答1:

Use CALayer, create CALayer with needed frame and add its to ImageView. CALayer documentation:CALayer Class Reference