How to add private APIs and frameworks to an iPhone App. Like Apple80211.
+1
A:
Assuming you're asking "how do I call a function declared in a private API", this app will show you how. Look in -[MSNetworksManager init].
void * dlopen(const char*, int) is the function you're looking for, declared in dlcfn.h, used like this:
int (*scan)(void *, NSArray **, void *);
void *libHandle = dlopen("/System/Library/Frameworks/Preferences.framework/Preferences", RTLD_LAZY);
scan = dlsym(libHandle, "Apple80211Scan");
Frank Shearar
2010-04-15 11:53:44
Thanks Frank...I will check it out. Thanks for the help.
2010-04-19 03:24:40
A:
Please do not use any private APIs since there is every chance that Apple will reject your application.
Hetal Vora
2010-04-15 12:08:49