calloutview

Customise iOS8 Callout bubble (Swift)

こ雲淡風輕ζ 提交于 2019-12-28 08:40:14
问题 I want to customise the iOS8 MapView Callout bubble which get visualised when clicking on a MKAnnotationView. The Default bubble is a bit limiting (having only Title,Subtitle and 2 accessory view) so I'm struggling to find an alternative solution. Here two possible ways and the relative problems I'm facing: PROBLEM 1) CREATING A CUSTOM CALLOUT BUBBLE Digging the Apple documentation I have found this: When you use a custom view instead of a standard callout, you need to do extra work to make

How to add colored border bubble callout in swift?

流过昼夜 提交于 2019-12-24 11:54:06
问题 I added a right button to callout, but now I'd like add a colored border to the whole bubble/callout. let's say I want the whole bubble with a colored border. I thought to implement something as view?.detailCalloutAccessoryView?.layer.borderWidth = 5.0 view?.detailCalloutAccessoryView?.layer.borderColor = UIColor(red:51/255.0, green:153/255.0, blue:255/255.0, alpha: 1.0).CGColor but it doesn't work something similar to this (I know that here they only aded a red view) but white inside, but

Swift -How to Update Data in Custom MKAnnotation Callout?

本小妞迷上赌 提交于 2019-12-11 11:45:24
问题 I have a custom annotation for my mapView. I initially set the coordinate, title (eg. "first title"), subTitle (eg. "first address"), userId, and a distance (eg. 0 meters) property on it with some data. I add it to the mapView and to an array for later use. Everything works, it shows on the mapView, I press it and the callout shows that initial data. I later get updated that the location for that callout has changed. I loop through the array and update the callout with new data for the

Customise iOS8 Callout bubble (Swift)

杀马特。学长 韩版系。学妹 提交于 2019-11-28 04:35:27
I want to customise the iOS8 MapView Callout bubble which get visualised when clicking on a MKAnnotationView. The Default bubble is a bit limiting (having only Title,Subtitle and 2 accessory view) so I'm struggling to find an alternative solution. Here two possible ways and the relative problems I'm facing: PROBLEM 1) CREATING A CUSTOM CALLOUT BUBBLE Digging the Apple documentation I have found this: When you use a custom view instead of a standard callout, you need to do extra work to make sure your callout shows and hides appropriately when users interact with it. The steps below outline the