概要
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;
}
}
}