In my application i want to detect the boundaries of an uiimage. I'm having an flower image has many parts like,(lief,sticky bulb etc..)as a single image.If i'm touch the particular lief means it find the boundary value of that particular lief and return the value.
I'm having no idea about this.Please any one help me out to do this.
You could implement some edge detecion algorithm. But unless you have some experience in image processing I think that would be a major headache.
If you have the image in advance (do you?) you could separate the image as a composition of masks and detect the touches in the corresponding mask. The idea is that for each part of the image you will have a corresponding bitmap mask. When you receive a touch, you check all masks to see which one has a black pixel in the location of the touch. It is a thick Quartz technique, but I think it is much more approachable than the edge detection. Check out the relevant quartz documentation.