I've added a title and subtitle to a CallOut
view, however i've come to the conclusion, that it is rather limited in its ability to add and customize subViews. How can i using swift create a callOutView like below? where there is a bottom button with a different color and a image, title and subtitle?
Asked
Active
Viewed 173 times
1

Peter Pik
- 11,023
- 19
- 84
- 142
1 Answers
0
New in iOS 9 you can add your own detailCalloutAccessoryView
which can be anything at all.

matt
- 515,959
- 87
- 875
- 1,141
-
yea but you cant add a view to fille the calloutView there is a margin? – Peter Pik Oct 24 '15 at 19:03
-
No, if you want to take over the whole callout you will have to override `setSelected:` and not show the callout when the user selects the annotation (show your own view instead). – matt Oct 24 '15 at 19:08
-
Right, and see my (much shorter) answer here: http://stackoverflow.com/a/26417306/341994 – matt Oct 24 '15 at 19:11