I have an iPad app, where, if the TextField.text starts with 5 specific characters, it will do one thing, and else if it doesn’t start with it, will do a different action. Any idea of how to know the 5 first characters of a NSString ?
I have an iPad app, where, if the TextField.text starts with 5 specific characters,
Share
Use this:
Or, if you want to find out what the first five characters are instead of comparing against a specific string, you can do this instead: