Re: NSString stringByTrimmingCharactersInSet method doesnt work.
Re: NSString stringByTrimmingCharactersInSet method doesnt work.
- Subject: Re: NSString stringByTrimmingCharactersInSet method doesnt work.
- From: j o a r <email@hidden>
- Date: Tue, 23 Dec 2008 10:06:14 -0800
On Dec 23, 2008, at 10:00 AM, Alex.Wang wrote:
We may expect to see "Trick here: Thereareblanks" output from the
console.
However, I got "Trick here: There are blanks" instead. I dont
know why
the stringByTrimmingCharactersInSet method doesn't work.
Can anyone here give me an explanation or tell me how to solve it?
From the documentation for this method:
"A new string made by removing from both ends of the receiver
characters contained in set."
Note that it only removes characters "from both ends of the receiver".
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden