在 ios 中以编程方式连接到 WiFi [英] Connect to WiFi programmatically in ios

查看:34
本文介绍了在 ios 中以编程方式连接到 WiFi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是关于 IOS 中的私有 API.是否有一些 API 来管理 WiFi 连接?例如,我使用 Apple80211.framework 来扫描 WiFi 网络,但它无法用于连接.

My question is about private API in IOS. Is there some API to manage WiFi connection? For example I'm using Apple80211.framework to scan WiFi networks but it's unusable for connecting.

我的应用不适用于 appstore.

My app isn't for appstore.

推荐答案

去年我遇到了这个问题,经过一番挖掘,我发现了一个有用的例子,叫做 SOLStumbler.要使此应用程序运行,您的设备必须越狱.我修改了 SOLStumbler 并在 github 上发布了一个示例应用程序.它使用 IPConfiguration 包来访问 Apple80211 框架,它允许您关联到网络.自述文件包含自定义构建说明.

I ran into this issue last year and after quite a bit of digging I came across a helpful example called SOLStumbler. For this app to work your device must be jailbroken. I modified SOLStumbler and threw up a sample app on github. It uses the IPConfiguration bundle to access Apple80211 framework, which allows you to associate to a network. The readme contains the custom build instructions.

https://github.com/devinshively/wifiAssociate

这篇关于在 ios 中以编程方式连接到 WiFi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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