0

I have created an iPhone app which loads the map using the MKMapkit. When clicking on the map, it shows MKAnnotation with title and subtitle strings.

Now I want to know how I can show the annotation with multiple lines of text. Please show me how to do it. Thanks for your time and help.

chatur
  • 2,365
  • 4
  • 24
  • 38
user198725878
  • 6,266
  • 18
  • 77
  • 135
  • Please edit the title so that it is more descriptive of the actual problem. This will make it easier to search for later (for anyone else who has this question in the future) – Merlyn Morgan-Graham Feb 18 '11 at 05:22

2 Answers2

0

You will need to sublass the annotation view and make your own callout see this example How to add more details in MKAnnotation in iOS this may also help source provided https://developer.apple.com/library/ios/#samplecode/WeatherMap/index.html

Community
  • 1
  • 1
Alex McPherson
  • 3,185
  • 3
  • 30
  • 41
0

Check out the MapCallOuts demo from Apple.

WrightsCS
  • 50,551
  • 22
  • 134
  • 186
  • @WrightCS : i checked it..but I want to show more text..is that possible? – user198725878 Feb 18 '11 at 05:42
  • @barbgal check out this SO question: http://stackoverflow.com/questions/2342070/how-to-add-more-details-in-mkannotation-in-iphone-os/2342701#2342701 – WrightsCS Feb 18 '11 at 05:51
  • Thanks for the reply. i check the given link.I have doubt in CustomMapAnnotationView class. do i need to create this class by subclassing uiview? am i right? pls help me up – user198725878 Feb 18 '11 at 06:42
  • @WrightCs : I am stuck with the implementation, can you show me some working code since i am new for iphone dev. – user198725878 Feb 18 '11 at 06:51