Moving the Google Maps logo when used in an iPhone app

I wonder if you can move the Google logo, which is displayed in the lower left corner of each MKMapView object that is used in the iPhone application.

I don’t want it to disappear, just move it, for example, to the lower right corner. Any thoughts on this?

Thanks!

+3
source share
2 answers

Despite the lack of a direct logo management API, you can still implement a workaround. The Google logo is the second view in the collection of views of the view. Here is the pseudo code in the class MapViewController:

// Get logo image view   
UIImageView* imageView = [self.mapView.subviews objectAtIndex:1];
// Get the actual image
UIImage* googleLogo = [imageView image];
// Declare your own image view (googleMapsLogo) to host the logo
// and put it onto map view at the desired position
// Assign to Google logo image to it
self.googleMapsLogo.image = googleLogo;
// Hide the original Google logo
imageView.hidden = YES;

, , googleMapsLogo.center. , .

+3

API-.

+1

Source: https://habr.com/ru/post/1721418/


All Articles