views:

92

answers:

1

Is there a method that could tell for a string like "foo bar Foo Bar one two three" at which position the string "Foo" is contained, case sensitive?

+11  A: 

The rangeOfString method in NSString is what you're looking for. Apple has a document that has a bit more detail.

Shaggy Frog