views:

96

answers:

1

Currently I have a subClass of MKAnnotation and I was wondering if its possible to add extra tile attributes. Currently MKAnnotation adds

  • Title
  • Subtitle

Is there a way I could add two more lines / NSStrings to allow 4 lines of text?

  • Title
  • SubTitle
  • Location
  • Date

gary

+1  A: 

If you want the extra lines, you'll have to make your own version of an annotation view. There is some information about making a custom annotation view here:

http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html

The other thing you can do is to put the extra information together in the subtitle, or use one of the callout accessory views (for example, use icons to represent different locations or dates).

nevan