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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -