How to add private APIs and frameworks to an iPhone App. Like Apple80211.
Asked
Active
Viewed 1,046 times
1
-
2do you want apple to reject your application...? – Mihir Mehta Apr 15 '10 at 11:48
2 Answers
3
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
- 17,012
- 8
- 67
- 94
1
Please do not use any private APIs since there is every chance that Apple will reject your application.

Hetal Vora
- 3,341
- 2
- 28
- 53
-
1:) I was actually aware of the consequences, but i just basically wanted to check out some features at my end. So my question still stands :) – user308990 Apr 16 '10 at 03:40