- Joined
- Aug 15, 2008
- Messages
- 489
- Reaction score
- 43
Hello,
I have been creating an iPhone application that has a map with annotations/pins on different places. Clicking on the annotation/pin will bring up some information about the place and below it should be a link to the website.
I watched a tutorial about how to create these annotations/pins and I managed to create them just fine. However, I am not able to find a way to create a link in the subtitle of the pin.
How can I make it so that the myAnn.subtitle would be a link that opens in web browser instead of just a text?
I have been creating an iPhone application that has a map with annotations/pins on different places. Clicking on the annotation/pin will bring up some information about the place and below it should be a link to the website.
I watched a tutorial about how to create these annotations/pins and I managed to create them just fine. However, I am not able to find a way to create a link in the subtitle of the pin.
Code:
myAnn = [[Annotation alloc] init];
location.latitude = COMPANY_LATITUDE;
location.longitude = COMPANY_LONGTITUDE;
myAnn.coordinate = location;
myAnn.title = @"Company OY";
myAnn.subtitle = @"http://www.companywebsite.com/";
[locations addObject:myAnn];
How can I make it so that the myAnn.subtitle would be a link that opens in web browser instead of just a text?

