1

How to add private APIs and frameworks to an iPhone App. Like Apple80211.

user308990
  • 61
  • 2
  • 11

2 Answers2

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