I downloaded the Multiple Beacons Proximity template and I am following the tutorial for proximity content and I noticed in the viewcontroller.swift there are not these holders…
BEACON_1_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D"
let BEACON_1_MAJOR: CLBeaconMajorValue = 17363
let BEACON_1_MINOR: CLBeaconMinorValue = 32903
let BEACON_2_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D"
let BEACON_2_MAJOR: CLBeaconMajorValue = 17372
let BEACON_2_MINOR: CLBeaconMinorValue = 30489
I had to manually put them there. Instead there is this self.proximityContentManager = ProximityContentManager(
beaconIDs: [
BeaconID(UUIDString: “B9407F30-F5F8-466E-AFF9-25556B57FE6D”, major: 17363, minor: 32903),
BeaconID(UUIDString: “B9407F30-F5F8-466E-AFF9-25556B57FE6D”, major: 17372, minor: 30489),
BeaconID(UUIDString: “B9407F30-F5F8-466E-AFF9-25556B57FE6D”, major: 21323, minor: 15500)
],
I feel like that would be a conflict of code. the tutorial then continues to change text in the didRangeBeacons and that as well is not in the app template but you have the following instead
func proximityContentManager(proximityContentManager: ProximityContentManager, didUpdateContent content: AnyObject?) {
self.activityIndicator?.stopAnimating()
self.activityIndicator?.removeFromSuperview()
if let beaconDetails = content as? EstimoteCloudBeaconDetails {
self.view.backgroundColor = beaconDetails.backgroundColor
self.label.text = "You're in \(beaconDetails.beaconName)'s range!"
self.image.hidden = false
}
else {
self.view.backgroundColor = EstimoteCloudBeaconDetails.neutralColor
self.label.text = "No beacons in range."
self.image.hidden = true
}
}
this is my first estimote app…i’m a beginner, but trying to follow the instructions word for word and I’m kind of lost.