gpt4 book ai didi

ios - 如何让UIImage变圆

转载 作者:行者123 更新时间:2023-11-28 08:08:44 24 4
gpt4 key购买 nike

<分区>

我正在尝试使 annotation.image 变圆。但我不知道怎么办。我将如何进行 UIImage 轮次。

 //Customize Annotation
func mapView(_ mapView: MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView? {

let annotationIdentifier = "Identifier"

var annotationView: MKAnnotationView! = mapView.dequeueReusableAnnotationView(withIdentifier: annotationIdentifier)

if annotationView != nil {
annotationView.annotation = annotation
} else {
annotationView = MKAnnotationView(annotation: annotation, reuseIdentifier: annotationIdentifier)


annotationView.image = profileImage.image

annotationView.canShowCallout = true
annotationView.frame = CGRect(x: 0, y: 0, width: 25, height: 25)

annotationView.autoresizesSubviews = true
annotationView.rightCalloutAccessoryView = UIButton(type: UIButtonType.detailDisclosure) as UIView
}


return annotationView
}

Currently looks like this on a map

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com