Created
July 11, 2016 08:39
-
-
Save ramakser/9f0544379abcf8b2acc346d557301b81 to your computer and use it in GitHub Desktop.
Remove all sights except numbers from NSString
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let stringArray = modelsList[indexPath.row].description.componentsSeparatedByCharactersInSet( | |
NSCharacterSet.decimalDigitCharacterSet().invertedSet) | |
let newString = stringArray.joinWithSeparator("") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment