iPad用アプリ(iOS6搭載)のGoogleマップに奇妙な問題があります。私は2つのビューで満たされた水平スクロールビューを作った。 1つは詳細情報ビュー(テキストで、何も特別なものはありません)で、2番目のビューはgoogleマップのビューコントローラです。これは、私のアプリケーション(2つのビューからのscrollviewのビルド)の普遍的なスキームです。この問題は、iOS6搭載の実際のiPadでアプリをテストし始めたときに発生します。スクロールビューを表示する必要がある場合、アプリケーションがクラッシュします。しかし、すぐにではありません。開始時、スクロールビューは適切に表示されます。次に、新しいデータで新しいスクロールビューを作成したいと思います。それもうまく行き、スクロール表示が適切に表示されます。 scrollView、任意の追加のエラーなしアプリケーションのクラッシュのいくつかの実行後アプリケーションが使用されました。iOS6でMapKitクラッシュが発生しました。
failed to make complete framebuffer object 8cdd
:そのようないくつかの操作の後、私はこのようなより多くのエラーログを受け取ってを開始しました。コードエディタのmain.mファイル上の点、および次の行:
int retVal = UIApplicationMain(argc, argv, nil, nil);
私が間違っているのものを見つけるために私に指示してください。
-(void)viewDidLoad {
mapView.mapType = MKMapTypeSatellite;
mapView.showsUserLocation = YES;
/* ANNOTATION (pin) */
CLLocationCoordinate2D annotationCoord;
annotationCoord.latitude = [self.restaurant.latitude doubleValue];
annotationCoord.longitude = [self.restaurant.longitude doubleValue];
// a pin with the info.
MKPointAnnotation *annotationPoint = [[MKPointAnnotation alloc] init];
annotationPoint.coordinate = annotationCoord;
annotationPoint.title = self.restaurant.name;
// add annotation to the map
[mapView performSelectorOnMainThread:@selector(addAnnotation:)
withObject:annotationPoint
waitUntilDone:YES];
[annotationPoint release];
MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance (annotationCoord, 500, 500);
[self.mapView setRegion:region animated:YES];
[super viewDidLoad];
}
と私はビューにはGoogleマップとビューコントローラをプッシュする方法がない母校:どこのGoogleマップを閲覧するための責任が私のビューコントローラからのviewDidLoadメソッドです。それは、常に私のアプリをクラッシュ:(I`veは次のように試してみました:。
[scrollView addSubview:self.googleMapViewController.view];
またはその:私はシミュレータ上でアプリケーションを実行すると
[[self navigationController] pushViewController:self.googleMapViewController animated:YES];
、すべての権利すべてをthere`s私は。私は私のプロジェクトの一つで同じ問題を抱えていた。これは、メモリリークによって引き起こされた。