-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在swift中搜索不到设备?? #9
Comments
sorry,babybluetooth暂不支持swift版本。后续会开发swift版本。预计3个月左右。 发自我的 iPhone
|
我使用混合编程方法已经集成进入工程了,可以调用,只是没有效果。 |
嗯。因为objc的链式方程是用block实现的。swift无法用。你执行单个方法可能会进委托,多个一起执行就不行了。 发自我的 iPhone
|
请教个问题,我现在做蓝牙,用bluetooth这个框架,只能搜到和连上苹果设备(mac , iphone),即使用您这个demo也是这样的,其他有蓝牙4.0的设备搜不到或者连不上 |
嗯。因为objc的链式方程是用block实现的。swift无法用。你执行单个方法可能会进委托,多个一起执行就不行了 |
babyBluetooth?.scanForPeripherals()().begin()() |
|
并且不能象例子中的 baby?.scanForPeripherals().begin()这样使用。
以上代码在控制台只显示了:
The text was updated successfully, but these errors were encountered: