How would I say that if a UITextField has @"-" in it, do something. Right now my code is like this. It doesn't seem to work:
if (MyUITextField.text == @"-") {
NSRange range = {0,1};
[a deleteCharactersInRange:range];
MyUITextField.text = MyUILabel.text;
}
I know that I am doing something very wrong with the code. Please help.