Swift 框架 BeaconMonitor

码农软件 · 软件分类 · 其他(Others) · 2019-07-18 14:58:37

软件介绍

BeaconMonitor 是 Swift 框架用来监控和排列 iBeacons。

import BeaconMonitor
import CoreLocation

class ListenViewController: UIViewController {

    var monitor: BeaconMonitor?

    override func viewDidLoad() {
        super.viewDidLoad()

        monitor = BeaconMonitor(uuid: NSUUID(UUIDString: uuidTextfield.text!)!)
        monitor!.delegate = self
        monitor!.startListening()
    }
}

extension ListenViewController: BeaconMonitorDelegate {

    @objc func receivedAllBeacons(monitor: BeaconMonitor, beacons: [CLBeacon]) {
        print("All Beacons: \(beacons)")
    }

    @objc func receivedMatchingBeacons(monitor: BeaconMonitor, beacons: [CLBeacon]) {
        print("Matching Beacons: \(beacons)")
    }

}


本文地址:https://codercto.com/soft/d/10408.html

How to Think Like a Computer Scientist: Learning with Python

How to Think Like a Computer Scientist: Learning with Python

Allen B. Downey、Jeffrey Elkner、Chris Meyers / Green Tea Press / 2002-1-4 / USD 24.95

""How to Think Like a Computer Scientist"" is an introduction to programming using Python, one of the best languages for beginners. This is a Free Book -- you can download it from thinkpython.com. But......一起来看看 《How to Think Like a Computer Scientist: Learning with Python》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具