iOS 8.x.x의 MKMapView에서 문제가 있습니다. 응용 프로그램은 iOS 7.x.x에서는 잘 작동하지만 iOS 8.x.x에서는 작동하지 않습니다. 장치에서는 주석 만 표시되지만 뒤에는지도가 표시되지 않습니다.MKMapView가 iOS 8 이상에서 렌더링되지 않습니다.
내 장치를 강제로 재설정하려했지만 운이 없었습니다. 이 아이폰 OS (8)에 대한 요구 사항이었고, 이후
<key>NSLocationAlwaysUsageDescription</key>
<string>Location is required to find out where you are</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Location is required to find out where you are</string>
내있는 viewDidLoad에서 코드의 라인을 추가로
은 나뿐만 아니라의 Info.plist에서이 두 값을 추가했다. 의 Info.plist에서이 두 값과 위의 코드 라인을 추가함으로써// 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 requestAlwaysAuthorization];
self.myMapView.showsUserLocation = YES;
}
, 나는 사용자의 위치를지도에 표시에 사용자의 위치 및 주석을 얻을 수있어하지만지도가 비어 있습니다. 이 게시물에 대한 유사
: MKMapView showing blank screen in iOS 8
누구든지 ...... ?? –