拒绝没有谷歌徽标 - mapkit - 但没有办法显示它

时间:2011-02-22 15:42:48

标签: iphone mapkit

我的iPhone应用程序刚被拒绝,因为我的屏幕显示我们在地图上的位置,但Apple说它需要在地图上显示Google徽标 - 我使用mapkit(和CoreLocation)..没什么特别的,我什么都没有积极压制徽标。但是,当地图显示在应用程序中时,没有Google徽标。所以,我很困惑。您如何显示Google徽标?这是我用来显示地图的基本代码:

    myMapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
    myMapView.mapType = MKMapTypeStandard;
    myMapView.zoomEnabled;

    CLLocationCoordinate2D coord = {latitude: 34.02008, longitude: -118.479707};
    MKCoordinateSpan span = {latitudeDelta: 0.01, longitudeDelta: 0.01};
    MKCoordinateRegion region = {coord, span};


MapController *annotation = [[MapController alloc]  initWithCoordinate:coord];
annotation.currentPoint = [NSNumber numberWithInt:1];
annotation.mTitle = @"InsightLA";
annotation.mSubTitle = @"1430 Olympic Blvd, Santa Monica, CA.";


[myMapView addAnnotation:annotation];

[annotation release];
[myMapView setRegion:region];
[self.view addSubview:myMapView];
myMapView.delegate =self;

5 个答案:

答案 0 :(得分:2)

可能是地图的框架高度足以将Google徽标推离屏幕,或者其他视图覆盖它。

继续以小块的形式缩小地图的高度,直到您在左下角看到Google徽标。然后从那里开始工作。

以下是我在网上发现的部分抑制徽标的一个示例。这可能是由于状态栏高度而发生的。

enter image description here

答案 1 :(得分:2)

Anurag是对的。

您可能忘了设置自动调整大小:

mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

答案 2 :(得分:1)

您需要更改mapview框架的大小。我自己也有同样的问题,但我把它改成了:

 MKMapView *mapView = [[MKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, 370)];

应该这样做: - )

答案 3 :(得分:0)

不熟悉mapkit,但您可以随时添加带有Google徽标图像的CA图层,例如.aplha = 5;在其中。不是一个很好的答案,但如果你绝望的解决方案:)

答案 4 :(得分:-1)

我有同样的问题。我的地图是全屏,状态栏。我只使用纵向模式,因此将地图高度调整为 416 会完全填满我的屏幕。