having fun with code

Trimming strings in Objective-C / Cocoa

  1. returnString =  [returnString stringByTrimmingCharactersInSet:
  2.                  [NSCharacterSet whitespaceAndNewlineCharacterSet]];

Very intuitive, huh?

Related Posts:

1 Comment to Trimming strings in Objective-C / Cocoa

  1. April 12, 2011 at 08:14 | Permalink

    Glad I’ve finally found somehting I agree with!

Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType

About the blog

This is a blog about development, focused mainly on Javascript but also other languages like python, shell scripts and more.

About the author

Eneko Alonso is a software engineer and UI developer with more than eight years of experience in software and web development. He lives in San Luis Obispo, California and works at LEVEL Studios.

Contact Info

Contact Info

PromoteJS

JavaScript JS Documentation