title: How to split strings into substrings in iOS
body: <p>I have a string like this.</p>
  
  <pre><code>NSString *str=@"-85.33,45.78,0.0000 -85.78,46.98,0.000 -85.98,47.678,0.0000";
  </code></pre>
  
  <p>I have to extract individual strings from the above into an array. </p>
  
  <p>The above string is 3 sets of longitude,latitude,altitude values. these are separated  by "," and spaces. I have to extract longitude values into an array and latitude to  another array.</p>
  
  <p>Can anyone please suggest a solution.</p>