4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MKMapView: Googleロゴをずらす

Posted at

概要

MapView の左下の Google ロゴ(の一部)が「なにかしら」に覆い隠されてしまっていると、App Store 申請時に却下を食らってしまう。あまり良くはないが「Google ロゴをずらす」対策で却下されずに済む(こともある)。

実装

// Google ロゴの位置をずらす
- (void)setupGoogleLogo
{
	if (!self.mapView) return;
	
	NSArray *subviews = [self.mapView subviews];
	if (subviews && [subviews count] >= 2)
	{
		UIView *logoview = [[self.mapView subviews] objectAtIndex:1];
		if ([logoview isKindOfClass:[UIImageView class]] == YES &&
			logoview.frame.size.width == 69 && logoview.frame.size.height == 23)
		{
			// logoview.frame.origin をいじる. yを-方向に移動させる、とか
			return;
		}
	}
}
4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?