Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does hiding "Legal" in MKMapView result in an App Store rejection?

I'm displaying an MKMapView in a somewhat small square. It's small enough that the "Legal" text pretty much blocks half the map, so I'd like to get rid of it.

Is this allowed:

for (UIView *view in mapView.subviews) {
    if ([NSStringFromClass([view class]) isEqualToString:@"MKAttributionLabel"]) {
        view.hidden = YES;
        break;
    }
}

Not sure if I am risking App Store rejection by hiding it or using this method?

like image 282
runmad Avatar asked Jan 26 '13 18:01

runmad


2 Answers

Yes, it will probably get rejected. Either because having the link is a legal requirement, or it'll be detected that you're using a private class (MKAttributionLabel).

That being said, you might get away with it for a few releases, if they don't notice.

Have you thought about using a static image instead of an MKMapView?

like image 66
nevan king Avatar answered Oct 20 '22 02:10

nevan king


You are using undocumented features/classes. Since your map feature is very limited, you are better off using google's static map api instead of linking to a full feature framework just to show a small square of a map.

like image 1
J2theC Avatar answered Oct 20 '22 02:10

J2theC