So if you have an NSString that goes:
@"My blue car is bigger than my blue shoes or my blue bicycle";
I would like a method that replaces only the first instance of blue with green, to produce:
@"My green car is bigger than my blue shoes or my blue bicycle";
How does one do this?
See Question&Answers more detail:os