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?
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With