zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

iOS(oc swift)蓝牙框架(工具类 demo)

ios工具框架 swift Demo 蓝牙 OC
2023-09-14 09:04:15 时间

框架持续更新中。。。

一. 框架使用说明(Framework instructions)

1.oc的项目直接在你的项目里拖入XXCoreBluetoothManager.h和XXCoreBluetoothManager.m两个文件
2.swift项目要拖入XXCoreBluetoothManager.h,XXCoreBluetoothManager.m和BluetoothManager.swift三个文件,而且还要建立桥接文件,并在XX-Bridging-Header.h中#import “XXCoreBluetoothManager.h”

  1. oc projects directly pull in XXCoreBluetoothManager.h and XXCoreBluetoothManager.m files in your projects
  2. For SWIFT projects, please pull in BluetoothManager.h, BluetoothManager.m and bluetoothManager.Swift. Also, create Bridging files, and “# XXCoreBluetoothManager.h” in the XX-Bridging-header.h

二. github仓库地址

XXyueliang/XYBluetoothCentralManager

三. gif演示(gif demo)

1. v1.0.0 完成扫描 1.swift utility class(swift工具类) 2.complete the scan(完成扫描)

在这里插入图片描述