let nsdataStr = NSData.init(data: deviceToken)
let datastr = nsdataStr.description.replacingOccurrences(of: "<", with: "").replacingOccurrences(of: ">", with: "").replacingOccurrences(of: " ", with: “")
print("deviceToken:\(datastr)")
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
网友评论