I was wondering how I would go about checking wether a UITextField's contents contain a certain amount of capitalised characters and special characters and then having an action to be completed if it does or doesn't?
EDIT: The current duplicate question answers half of my question. I only now need help, using the same format as the duplicate question(if rangeOfCharacterFromSet(.decimalDigitCharacterSet(), options: .LiteralSearch, range: nil) == nil {
) except instead of .decimalDigitCharacterSet()
I would like to know the code for special characters and capitalised letters. Thanks in advance.<\strike>.
I have figured out my own question, and found the different sets here: https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/