ios - How to disable sharing on UITextView without using non-public APIs and Rejected by apple? -
my latest release apple rejected following response.
your app uses or references following non-public apis, violation of app store review guidelines:
_share:
the use of non-public apis not permitted in app store because can lead poor user experience should these apis change.
i have thoroughly searched app in xcode _share: method. using disable sharing on 1 of uitextview this.
@implementation uitextviewdisableshare : uitextview - (bool)canperformaction:(sel)action withsender:(id)sender { if (action == @selector(_share:)) return no; return [super canperformaction:action withsender:sender]; } @end
there lot of questions on stack-overflow suggest use above code disable copy, paste or share options programmatically e.g this. need disable sharing option, can't set userinteractionenabled=no
.
one of app release accepted app store above code in it. how should disable sharing on uitextview, not conflicts of apple's review guide lines , non-public apis?
take turn(no api of _share
):
- (bool)canperformaction:(sel)action withsender:(id)sender { if (action == @selector(paste:) || action == @selector(copy:) // ... selectors allow except _share. ) { return yes; } return no; }
Comments
Post a Comment