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)")

上一篇 下一篇

猜你喜欢

热点阅读