ios - Implementing an Unpublished API -


i have ios library on expose methods my apps consume api explicitly disallow calling methods other apps.

right have internal methods in special header foo+internal.h has (internal) category extension on classes. app includes file how actively disallow else using these methods?

if talking c functions, put of source 1 translation unit , declare internal functions static.

but since you're talking methods on objective-c classes, answer that, ultimately, can't. if methods in library, , give library others, can call methods.

if internal methods independent of rest of library, can create external version of library (for customers) , internal version (for own use). don't include internal methods in external library.

you try obfuscate names of internal methods using #defines.


Comments