Apple and private APIs

后端 未结 7 913
你的背包
你的背包 2021-01-02 11:13

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 ma

7条回答
  •  猫巷女王i
    2021-01-02 12:15

    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)];
    

提交回复
热议问题