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;
}
雖然只需要一個屏幕這個大的延遲。