My latest release to apple is rejected with following response.
Your app uses or references the following non-public APIs, which is a violation of the App Store Review Guidelines:
_share:
The use of non-public APIs is not permitted in the App Store because it can lead to a poor user experience should these APIs change.
I have thoroughly searched my app in XCode for _share: method. I am using it to disable sharing on one of UITextView like 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 are a lot of questions on stack-overflow which suggest to use above code to disable copy, paste or share options programmatically e.g THIS. I only need to disable sharing option, so I can't simply set userInteractionEnabled=NO
.
One of my app release is already accepted by App Store with above code in it. How should I disable Sharing on my UITextView, so that it do not conflicts with any of apple's review guide lines and non-public APIs?