0

Thats the last part in my Code:

func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) {
    if let data = characteristic.value {
        let weight: Int = data.withUnsafeBytes { $0.pointee }
        Label1.text = String(weight) + "Hz"
    }
}

I just want to change the Label in the String with "HZ"

Joakim Danielson
  • 43,251
  • 5
  • 22
  • 52
DomiAki
  • 3
  • 2

0 Answers0