Reputation: 5602
Hello everyone i am stuck into one problem. I am working on Application in which Mall Map required to integrate.
I need to display Mall map like this:
I have done proper r&d but not found any solution yet.
Can it be possible if yes then how can i implement this ?
Any hint or suggestion will be appreciated.
Thanks.
Upvotes: 0
Views: 252
Reputation: 3001
You could display the map in a UIImage
and place this image in a UIScrollView
. After that you need to divide the image into region rectangles, each identifying one room.
When the user taps the UIScrollView
you need to determine which region he tapped on.
Using your room grid you can detect which room he tapped on. Of course this is easier for not zoomed images.
In a zoomed state you need to convert the touched point to the "unzoomed touched point" and check this point for the grid.
Upvotes: 1