Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move legal button on maps (iOS 6) [duplicate]

Possible Duplicate:
Maps and legal mention

In iOS 5 or lower I was able to move the Google logo in the map view. iO6 has a "legal" button and this is a MKAttributeLabel. MKAttributeLabel is a private class that I can't edit. I have buttons which overlap the map in the bottom (by design) so i moved the google logo.

Is there a way to reposition the Legal button in ios6 maps?

like image 739
Mark Molina Avatar asked Nov 13 '12 14:11

Mark Molina


1 Answers

The legal label is a standard UILabel, so you can change the frame like an other label :

UIView *legalView = nil;

for (UIView *subview in self.mapview.subviews) {
   if ([subview isKindOfClass:[UILabel class]]) {
            legalView = subview;
            break;
     }
}
legalView.frame = CGRectMake(150, 150, legalView.frame.size.width, legalView.frame.size.height);
like image 74
malinois Avatar answered Nov 12 '22 04:11

malinois