xcode - how to make MKAnnotationView has A Number Or Title? -


i have annotationview want give number @ annotationview

example:

i have 20 annotationview @ mkmapview, want give number each annotationview, user use application can see number, know target annotationview, because there number @ each annotationview have been declared before mkmapview showing

how can that?

you need customize mkannotationview -- 1 of simplest ways set image property on it.

if have 20 numbers, might consider generating 20 images each, storing them in app, , setting image property on annotation view.

further -- can customize mkannotationview implementing drawrect, draw requested number view.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -