gpt4 book ai didi

iOS MapView 显示整个美国

转载 作者:行者123 更新时间:2023-11-29 01:35:06 26 4
gpt4 key购买 nike

我正在尝试在 MapView 中加载一个区域,但我总是看到整个美国的 View 。这是一款以横向模式运行的 iPad 应用程序。我在想跨度可能不是正确的尺寸,但我不确定如何修复它。这是我的数据。有什么想法吗?

谢谢... enter image description here

最佳答案

我通过添加 CLLocationManager 解决了类似的问题:

    self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.delegate = self;
// Check for iOS 8. Without this guard, the code will crash with "unknown selector" on iOS 7.
if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
[self.locationManager requestWhenInUseAuthorization];
}
[self.locationManager startUpdatingLocation];

关于iOS MapView 显示整个美国,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33049486/

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