【发布时间】:2021-07-29 05:37:18
【问题描述】:
我只导入了 MapKit 和 UIKit。然后在我的代码中我使用了类 CLLocationManager
var locMgr = CLLocationManager()
我的代码可以正常工作。
但是有些奇怪。 CLLocationManager 不是 MapKit 框架的一部分。 CLLocationManager 是 CoreLocation 框架的一部分。 但无论如何都没有错误。这不是结果。我不明白它是如何工作的。
【问题讨论】:
标签: swift xcode frameworks mapkit cllocationmanager