1
我有一个带标记的地图(GoogleMaps framework 1.8.1 - iPhone 4S - iOS 7.1)。每次我点击一个标记,我需要显示到另一个屏幕。Objective-C - 延迟打开视图iOS 7.1
问题是,在连接到此视图和地图的任何屏幕上,它都会延迟2-3秒。在某些情况下,延迟时间可达20至30秒。
代码创建地图:
camera = [GMSCameraPosition cameraWithLatitude: locationManager.location.coordinate.latitude
longitude: locationManager.location.coordinate.longitude
zoom: 14];
map = [GMSMapView mapWithFrame: CGRectMake(0,
0,
self.view.frame.size.width,
self.view.frame.size.height)
camera: camera];
代码didTapMarker
:
[self performSegueWithIdentifier: @"EntityDetail" sender: self];
return YES;
PS:这不仅发生在标记的点击。在与地图连接的任何屏幕上发生。
代码viewDidLoad
视图控制器赛格瑞:
NSString * titleString =[NSString stringWithFormat: @"Title Here"];
if (titleString.length > 15) {
self.title = [titleString substringWithRange:NSMakeRange(0, 15)];
}else{
self.title = titleString;
}
虽然只需要一个屏幕这个大的延迟。