xcode - 如何使用 MobileWiFi.framework [英] xcode - how use MobileWiFi.framework

查看:33
本文介绍了xcode - 如何使用 MobileWiFi.framework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的私人应用程序(未越狱)中,我需要读取企业热点的 wifi RSSI 值.我阅读了有关 MobileWiFi.framework 的信息.我正在尝试使用 此处 中找到的示例代码获取 WiFi 信号强度",但没有幸运的.可能,我没有正确使用该框架.谁能告诉我这样做的步骤?

In my private app (not jailbroken), I need to read wifi RSSI values of enterprise hotspots. I read about MobileWiFi.framework. I am trying to use the example code "Getting the WiFi signal strength" found here but without lucky. Probably, I am not properly use the framework. Anyone could tell me the steps to do that?

推荐答案

visit ://http://iphonedevwiki.net/index.php/MobileWiFi.framework

  <key>com.apple.wifi.manager-access</key>
</true>
  Your custom entitlements file should finally look something like that:

     <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"    "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
       <key>keychain-access-groups</key>
   <array>
    <string>YOUR_APP_BUNDLE_ID</string>
</array>
<key>com.apple.wifi.manager-access</key>
</true>
  </dict>
  </plist>

这篇关于xcode - 如何使用 MobileWiFi.framework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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