iPhone 的蓝牙 API
我厌倦了必须在 iPhone 上浏览大量毫无意义的菜单才能启用/禁用蓝牙,并且想为自己制作一个基本上只启用/禁用手机上的蓝牙的应用程序。我有一个 Apple 开发者帐户,因此部署不会有问题(可以进行临时部署)。
我一直在搜索,但找不到任何可以让我执行此操作的 API。有谁知道吗?如果有人为个人使用而构建了该代码,可以开源吗?
I'm tired of having to go through a lot of pointless menus on the iPhone just to enable / disable bluetooth and would like to make myself an app that basically just enables / disables the bluetooth on my phone. I have a developer account with Apple, so deployment wouldn't be a problem (can do ad-hoc deploys).
I've been searching, but couldn't find any APIs that let me do this. Does anyone know of any? Can someone open source the code if they've built this for personal use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,这需要使用私有 API。除非您不想重新发明轮子,否则我建议您对手机进行越狱。我已经使用 GreenPois0n 成功完成了此操作。完成后,您可以访问 Cydia - 一个替代 App Store,用于处理 Apple 不批准的所有内容。
从 Cydia 下载 SBSettings。现在,您只需滑动状态栏即可快速启用/禁用蓝牙、3g、飞行模式、wifi 等:
您应该越狱手机的其他一些提示和原因:
To my knowledge, this requires use of private APIs. Unless you wan't to reinvent the wheel, I recommend jailbreaking your phone. I have sucessfully done this using GreenPois0n. When done, you get access to Cydia - an alternative App Store for all things Apple won't approve.
Download SBSettings from Cydia. Now you can just swipe the status bar to quickly enable/disable bluetooth, 3g, airplane mode, wifi and more:
Some other tips and reasons you should jailbreak your phone: