根据Apple的规定,使用私有API的程序可能被App Store拒绝,但是还是有不少的App Store
程序使用了私有API。(我曾与别人合作的一个程序使用了有关wifi的私有API,通过了App Store的审查)。但最近使用static analysis(静态分析)的方法可以检测出有没有使用私有API。有一则开发者的信息:

I got a phone call from Apple today about this issue. They asked me
to remove simulateTapAtPoint and related code due to their static
analyzer automatically flagging it and rejecting apps. I just checked
in some changes which wrap this code in an #ifdef DEBUG so they can
still be used for their intended debugging purposes.

大意是Apple打电话给他,要他移除一段代码(这段代码来自Three20。Three20是一个iPhone UI库,使用了不少私有API。)。要注意的是这段代码是在#ifdef DEBUG下,仍然被Apple检测出,说明Apple确实有办法检测出是否是用了私有API。