【文件属性】:
文件名称:show-user-on-the-map
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-17 06:23:15
Swift
在地图上显示用户
所有用户信息都是伪造的,取决于API创建者。
我添加了exta纬度和经度,以显示一些地球而不是水。
#一些工作数据:
API中的lat和lng是字符串。
我通过导航链接将其传递到详细信息视图。
我在那里获取了它,并将其迷恋为Double,并将其放入CLLocationCoordinate2D(lat,lng)中,这是MapView(...)的参数
【文件预览】:
show-user-on-the-map-main
----UserOnTheMap.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(13KB)
----UserOnTheMap()
--------Preview Content()
--------Info.plist(2KB)
--------Map.swift(728B)
--------ContentView.swift(2KB)
--------Assets.xcassets()
--------UserOnTheMapApp.swift(247B)
--------UserViewModel.swift(2KB)
----README.md(410B)