It is trivially easy to trim beginning and trailing spaces in Java. You just call 1 " some string ".trim() and that’s the end of it. It’s not hard in Objective-C, but it’s a bit more verbose. 1 2 3 4 NSString *s = @" I am a string to be trimmed "; NSString *trimmed= … [READ THE FULL ARTICLE]
Dec 012010