Move legal button on maps (iOS 6)
ios, iphone, mkmapview, objective-c
Solution
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);
Problem
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?