Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- các bác cho em hỏi làm thế nào convert tiếng việt có dấu thành không dấu ạ swift
- > var mutableString = NSMutableString(string: str) as CFMutableString
- > CFStringTransform(mutableString, nil, kCFStringTransformStripCombiningMarks, false)
- > let normalized = (mutableString as NSMutableString).copy() as! NSString
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement