如何在 table 末尾添加 mapview 作为页脚 (Swift)

How do I add mapview at the end of table as a footer (Swift)

我正在使用 Xcode (Swift) 我有 table 使用自定义单元格查看。我想在 table 的末尾添加 mapview 作为页脚。 Table 单元格显示地址,最后页脚将在地图上显示点。知道如何: 1)添加页脚, 2)将地图插入该页脚, 3) 在地图上添加点(带地理位置的地址)。

任何关于我应该从哪里开始的指导或示例将不胜感激。

如果有人需要

1.&2.)

var mapView = MKMapView()

在 ViewDidLoad() 中

.......

mapView.mapType = .Standard
mapView.frame = view.frame
table.tableFooterView = mapView

3.) 使用注解