MapKit(Swift 4)Xcode 9.2-'无法从第4角插入合法归属' [英] MapKit (Swift 4) Xcode 9.2 - 'Could not inset legal attribution from corner 4'
问题描述
我正在做一个处理MapKit的项目.我的问题是,当我运行该应用程序时,出现无法从第4个角落插入合法归属信息".错误.我可以采取什么解决方案来解决此问题?
I'm doing a project that deals with a MapKit. My issue is when I run the app, I get the 'Could not inset legal attribution from corner 4.' error. What solution can I take to resolve this issue?
推荐答案
我和您有完全相同的错误-地图未显示,并且出现错误:
I had the exact same error as you - the map was not showing up and I was getting the error:
2018-08-25 09:59:17.324966-0400解析Foursquare克隆[45537:42276733]无法从第4个角插入合法归属
2018-08-25 09:59:17.324966-0400 Parse Foursquare Clone[45537:42276733] Could not inset legal attribution from corner 4
2018-08-25 09:59:17.332612-0400解析Foursquare克隆[45537:42276733]无法从第9条边插入缩放比例
2018-08-25 09:59:17.332612-0400 Parse Foursquare Clone[45537:42276733] Could not inset scale from edge 9
原因是因为我没有设置委托MKMapViewDelegate和CLLocationManagerDelegate.如果您感到困惑,这是我正在查看的内容.一旦设置好,地图就会开始出现.希望这会有所帮助!
The reason is because I did not setup the delegates, MKMapViewDelegate and CLLocationManagerDelegate. Here is what I'm looking at in case you're confused. Once I set these up, the map started appearing. Hope this helps!
import UIKit
import MapKit
import CoreLocation
class locationVC: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate {
这篇关于MapKit(Swift 4)Xcode 9.2-'无法从第4角插入合法归属'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!