在MKMapView中隐藏"Legal"会导致App Store拒绝吗?

run*_*mad 11 app-store mkmapview ios

我在一个有点小方块中显示MKMapView.它足够小,"法律"文本几乎阻止了地图的一半,所以我想摆脱它.

这是允许的:

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

不确定我是否因隐藏或使用此方法而冒App Store拒绝的风险?

nev*_*ing 3

是的,很可能会被拒绝。要么因为拥有链接是法律要求,要么会检测到您正在使用私有类 ( MKAttributionLabel)。

话虽这么说,如果他们没有注意到的话,您可能会在几个版本中侥幸逃脱。

您是否考虑过使用静态图像而不是MKMapView

  • 恕我直言,runmad 没有使用任何私人课程。他只是根据字符串检查类名,他不使用该类。NSStringFromClass 是一个公共函数:https://developer.apple.com/library/ios/#documentation/cocoa/reference/foundation/miscellaneous/foundation_functions/reference/reference.html (4认同)