I am new to Iphone Development,
Given the following map. I want to raise a touch event whenever i select a particular part like \"Western Australia\". But that parti
THere are several options but only one would be rather trivial to implement.
First of all, you will not be able to get this done with regular controls like UIButtons - instead you will want to handle touch-events yourself.
-1- Colored regions; your map is colored and all clickable regions show different colors.
In that case all you need to do is check the pixel below the touched point for its color. Something like that is done within this example.
-2- Custom touch map; a map of geometrical objects, ideally triangles.
You might create some kind of overlay map that consists of triangles. Possibly varying in size. All the triangles on that map are linked to a region. Whenever the user touches your map, you run a collision detection. For details on a simple 2D Point to Polygon collision, check out this article at topcoder.