Checking NSString for numbers and substrings?
I'm new to iPhone development and Objective-C. I'm sure you get a lot of that here.
Anyway, I need to do a couple checks on a string. First I need to make sure there aren't any numbers in it. Then I need to make sure it doesn't contain a few substrings ('jpg', 'gif', 'png'). It looks like rangeOfString is what I want, but I'm not comfortable with Objective-C yet and I was hoping somebody could show me the best way to do this.
Thanks!
|