last day (26 days later) » 

Rob
4:15 PM
1
Q: iOS Custom Annotation: A view below the annotation pin

Rajat Deep SinghI need to replace the default annotation view with my custom annotation view. I need the do following things: Custom Annotation view with an image view embedded in it. A view below it which contains a label in it. For more clarification see the image: In the above image I need to place an...

@RajatDeepSingh There's not much more than what is here, but I put it up on github for you at github.com/robertmryan/Custom-Annotation-With-DrawRect. Note, this version adds a few different capabilities (e.g. adds itself as observer on label so that if you override label.text in viewForAnnotation, the bubble will resize, etc.
30
A: Custom MKAnnotation callout bubble with button

RobIt will work if you add this custom callout to the MKMapView object (or the annotation's superview) instead of the MKAnnotationView (obviously adjusting the coordinates appropriately). Here is a trivial popover (white view with single button) created programmatically: - (void)mapView:(MKMapView...

If I'm not here when you post, make sure to include "@Rob" in you comment or else Stack Overflow won't notify me of it.
 

  last day (26 days later) »