gpt4 book ai didi

iphone - iOS 5 : programmatically turn bluetooth on and off

转载 作者:可可西里 更新时间:2023-11-01 06:19:22 27 4
gpt4 key购买 nike

我看到在以前的 iOS 版本中,以编程方式打开和关闭蓝牙是一种“私有(private) api”,它会使应用程序被苹果 itunes 商店拒绝。

但在 iOS 5 中,我知道以前私有(private)的东西不再是私有(private)的,例如以编程方式更改屏幕亮度。这样做将不再让您的应用程序在 iOS 5 的 iTunes 中被拒绝,所以我想知道其他东西是否公开可用,例如蓝牙适配器。

最佳答案

CoreBluetooth 在 iOS 5 中公开可用。不幸的是,它仅适用于新的蓝牙 LE(低功耗)设备。

参见 CoreBluetooth Documentation

关于iphone - iOS 5 : programmatically turn bluetooth on and off,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9200956/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com