gpt4 book ai didi

swift - 导航按钮 用户位置

转载 作者:行者123 更新时间:2023-11-28 16:12:18 26 4
gpt4 key购买 nike

我需要什么样的代码才能使我的栏按钮像在 Google map 中一样定位并缩放到用户的位置?我尝试了以下方法:

if Navigationbutton != nil {
Navigationbutton.target = MKMapView()
Navigationbutton.action = CLLocationCoordinate2D (latitude: location!.coordinate.latitude, longitude: location.coordinate.longitude)

最佳答案

关于swift - 导航按钮 用户位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39411859/

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