Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide Google logo on MKMapView

Does somebody know how the Google logo can be hidden on a MKMapView?

I don't want to hide it. I want the opposite. The reason is that a app got rejected because of

8.6 Google Maps and Google Earth images obtained via the Google Maps API can be used within an application if all brand features of the original content remain unaltered and fully visible. Apps that cover up or modify the Google logo or copyright holders identification will be rejected

Now I want to undo this, but I don't know which code is responsible for this behavior.

Edit:

I think the reason is this code line

self.mapView=[[[MKMapView alloc] initWithFrame:self.view.bounds] autorelease];

self.view.bounds does not take the navigation bar in account. I will try this:

CGRect mapSize = CGRectMake(self.view.bounds.origin.x, self.view.bounds.origin.y, self.view.bounds.size.width, self.view.bounds.size.height - 44.0f);
self.mapView = [[[MKMapView alloc] initWithFrame:mapSize] autorelease];
like image 772
testing Avatar asked Dec 03 '22 10:12

testing


1 Answers

The Google logo automatically appears in the lower-left corner of any MapView. The only way it gets hidden is by covering that corner.

I haven't seen your app, but if I had to guess I'd say that one of these is true:

  1. Your map view extends below a control near the bottom of the screen, like below a Tab Bar, or maybe just entirely off the bottom of the view if there's nothing down there (below 480 px on the iPhone).

  2. Your map view is ok at the bottom except when something appears down there, like a Toolbar.

  3. Things are generally laid out fine in portrait mode but when the user switches to landscape you're not resizing your map correctly and the bottom of it is getting cut off.

like image 174
Matthew Frederick Avatar answered Dec 18 '22 23:12

Matthew Frederick