解决办法:
let tokenData = NSData(data: deviceToken)let deviceToken = tokenData.description.replacingOccurrences(of:"<", with:"").replacingOccurrences(of:">", with:"").replacingOccurrences(of:" ", with:"")复制代码
本文共 256 字,大约阅读时间需要 1 分钟。
解决办法:
let tokenData = NSData(data: deviceToken)let deviceToken = tokenData.description.replacingOccurrences(of:"<", with:"").replacingOccurrences(of:">", with:"").replacingOccurrences(of:" ", with:"")复制代码
转载于:https://juejin.im/post/5a31ebd4f265da4309452bfb