美文网首页
DeviceToken Data -> String

DeviceToken Data -> String

作者: Still4ever幺惊云 | 来源:发表于2017-03-24 18:04 被阅读0次

let nsdataStr = NSData.init(data: deviceToken)

let datastr = nsdataStr.description.replacingOccurrences(of: "<", with: "").replacingOccurrences(of: ">", with: "").replacingOccurrences(of: " ", with: “")

print("deviceToken:\(datastr)")

相关文章

网友评论

      本文标题:DeviceToken Data -> String

      本文链接:https://www.haomeiwen.com/subject/ecofottx.html