title: How to return the index of a character in string on iPhone?
body: <p>I want to split a few strings whose separate marks are different. </p>
  
  <p>e.g.separate a string: "A-B^C~D"</p>
  
  <p>So I want to get the index of each separate mark. Is there any method like indexOf(' ') on iPhone?</p>