标签:
测试时获取token
let token = deviceToken.description.stringByTrimmingCharactersInSet(NSCharacterSet(charactersInString: "<>"))
// 获取deviceToken
let tokenString = token.stringByReplacingOccurrencesOfString(" ", withString: "")
print("deviceToken == \(tokenString)")
标签:
原文地址:http://www.cnblogs.com/hazhede/p/5482733.html