Last active
July 2, 2017 08:35
-
-
Save haranicle/3d1d31d0e0f6ad6e49ff97a3e859cabe to your computer and use it in GitHub Desktop.
split NSString
This file contains hidden or 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
var str: NSString = "abcdef" | |
for i in 0..<str.length { | |
print(str.substring(with: NSRange(location: i, length: 1))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment