I want to check if my string contains ONLY digits. To do this, I try:
if resultTitles[indexPath.row].rangeOfCharacterFromSet(badCharacters) == nil { let badCharacters = NSCharacterSet.decimalDigitCharacterSet().invertedSet print("Index: \(indexPath.row)") }
It worked, but now it is not. This is really weird. What is wrong here?
ios swift
Orkhan alizade
source share