摘要:
示例代码 private(set) var isConnecting: [CBPeripheral : Bool] = [:] 说明: 除了使用函数做为获取接口的方法外,在swift中给出了private(set)申明的方式来限制外部对属性的修改.但在当前文件中依然可改. 例:private(set 阅读全文
posted @ 2022-01-16 23:40
码出境界
阅读(921)
评论(0)
推荐(0)
摘要:
guard 示例代码 func peripheralViewModel(at row: Int) -> SILDiscoveredPeripheralDisplayDataViewModel? { guard row < discoveredPeripheralsViewModels.count e 阅读全文
posted @ 2022-01-16 23:26
码出境界
阅读(158)
评论(0)
推荐(0)

浙公网安备 33010602011771号