How to check any undocumented methods provided by apple?

Posted by Mahbubur R Aaman on Programmers See other posts from Programmers or by Mahbubur R Aaman
Published on 2012-10-01T17:59:07Z Indexed on 2012/10/01 21:50 UTC
Read the original article Hit count: 393

Filed under:
|
|

The following tools is provided by Apple

  • dlopen
  • dlsym
  • objc_getClass
  • sel_registerName
  • objc_msgSend

Those are listing Objective-C selectors, or strings. Objective-C selectors are stored in a special region of the binary, and therefore Apple could extract the content from there, and check if you've used some undocumented Objective-C methods.

  • How to utilize these tools to find undocumented Objective-C methods?

EDIT: Recently, one of my App rejected due to using one undocumented methods.

-[UIDevice setOrientation]

Since, selectors are independent from the class you're messaging, even if my custom class defines -setOrientation: irrelevant to UIDevice, there will be a possbility of being rejected.

© Programmers or respective owner

Related posts about ios

Related posts about tools