简体   繁体   中英

Get Bluetooth name of the device and the connected bluetooth in Swift (iOS)

I'd like to get the name of the iPhone's bluetooth and eventually the name of scanned bluetooth devices that the iPhone detects. Any indication of how to do that in Swift?

From what I know, this is the best example, but it is in Objective-C . It won't be difficult for you to translate the project to Swift . Spend some time and understand the example. It is a very good example. Currently, there are a lot of good examples in Objective-C , but only a few in Swift . You may also have a look at this . It is a simple Swift project about Bluetooth & iBeacon . Good luck! :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM