iPhone专用的API [英] iPhone private APIs

查看:160
本文介绍了iPhone专用的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何私人API和框架添加到iPhone应用程序。像Apple80211。

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

推荐答案

假设你问我怎么调用私有API声明的函数的这个程序将你展示如何。看在 - [MSNetworksManager INIT]

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].

无效*的dlopen(为const char *,INT)就是你要找的功能, dlcfn.h ,像这样使用:

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");

这篇关于iPhone专用的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆