Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Square Reader SDK 开发 iOS 应用程序,我将如何检测 Square Reader 硬件是否与设备连接,以便在硬件未与设备连接的情况下显示 Square Reader 设置视图。
let readerSettingsController = SQRDReaderSettingsController(delegate: self) readerSettingsController.present(from: self)
如果您完成了其他所需的过程,只需输入上面的代码即可检查有关读卡器连接的状态。