Apple and private APIs

2019-02-13 17:16发布

Now that it's public knowledge that App Store submissions are being tested for use of private APIs, I need to ask the question... what exactly is a private API so that I may avoid them?

7条回答
啃猪蹄的小仙女
2楼-- · 2019-02-13 18:05

My app was rejected by apple because of using private API.Here is code,

    Class UIKeyboardImpl = NSClassFromString(@"UIKeyboardImpl");

    id activeInstance = [UIKeyboardImpl performSelector:@selector(activeInstance)];

    [activeInstance performSelector:@selector(dismissKeyboard)];
查看更多
登录 后发表回答