Does hiding “Legal” in MKMapView result in an App Store rejection?

邮差的信 提交于 2019-12-03 12:15:19

问题


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?


回答1:


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?




回答2:


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.



来源:https://stackoverflow.com/questions/14540112/does-hiding-legal-in-mkmapview-result-in-an-app-store-rejection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!