title: Objective C remove end of string after certain character
body: <p>I can't seem to find the answer to this anywhere. I can do it in c but objective c is difficult.</p>
  
  <p>I want to cut the end of a string after a certain character</p>
  
  <p>so user@example.com will become user (cut at '@')</p>
  
  <p>How do I do this?</p>