DeviceToken Data -> String
2017-03-24 本文已影响0人
Still4ever幺惊云
let nsdataStr = NSData.init(data: deviceToken)
let datastr = nsdataStr.description.replacingOccurrences(of: "<", with: "").replacingOccurrences(of: ">", with: "").replacingOccurrences(of: " ", with: “")
print("deviceToken:\(datastr)")