iOS字串取代replace a character in NSString
Swift
var deviceTokenString = NSString(format: "%@", deviceToken)
deviceTokenString = deviceTokenString.stringByReplacingOccurrencesOfString("<", withString: "")
Object-C
[[[deviceToken description]
stringByReplacingOccurrencesOfString: @"<" withString: @""]
留言