去除NSString里面的空格

NSString *password = @"12  34";

[password stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];

posted @ 2015-01-09 16:03  shidaying  阅读(185)  评论(0编辑  收藏  举报