The maps application uses an MKAnnotation for the information posted above a pin. If you are developing for an OS less than 3.0 though, you don't have access to this view. For those of us who still wish to develop for OSs under 3.0, I created a small object called OCDetailView.
Basically, you just feed it the text you want and an anchor point (the point where the triangle points to) and it does the rest. You can also set a tint color and it shades accordingly. Additionally, you can choose to hide and show the detail button and set that buttons actions. You can download the object on our downloads page as well as a quick project that shows the general features. Feel free to use the code as you wish.
Basically, you just feed it the text you want and an anchor point (the point where the triangle points to) and it does the rest. You can also set a tint color and it shades accordingly. Additionally, you can choose to hide and show the detail button and set that buttons actions. You can download the object on our downloads page as well as a quick project that shows the general features. Feel free to use the code as you wish.


