Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I am utilizing MKAnnotationView to point out a customized view when a person faucets a pin on the map. The customized view shows superb and I am utilizing func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView)
to point out it.
I am utilizing the detailCalloutAccessoryView
as I have to have the tableView contained in the detailCalloutAccessoryView
. The issue I am having is that I can not change the backgroundColor, take away the padding or take away the Shadow opacity of the detailAccessoryView.
I’ve additionally tried to unravel this by making a customView and alter the CanShowCallout
to false and simply add it to the view utilizing view.addSubView(customView)
which appears precisely because the design nonetheless the tableView does not scroll – I suppose that is as a result of it is only a view.
How can I modify the detailAccessoryView?
view.detailCalloutAccessoryView?.superview?.layer.cornerRadius = 10
view.detailCalloutAccessoryView?.superview?.backgroundColor = UIColor(named: "Purple") ?? purple
view.detailCalloutAccessoryView?.superview?.layer.shadowOpacity = 0
[ad_2]