WebHere I am explaining a way to trim whitespace from string from start and from end. Ios does not provide a any particular method to trim whitespace from string. You can used following application to trimg string as :-Trim whitespace from End :-Example :-NSString *tempstr = @"Ram "; Call Method tempstr = [self removeEndSpaceFrom:tempstr]; Web方法中进行的(我使用的是Mac OS X,而不是iOS) 编辑: 有人指出,最初发布的代码没有正确处理多行文本。为了解决这个问题,我利用了这个事实,并搜索这个序列的两个实例。然后,根据观察到的情况,我将文本字符串中所有出现的CRLF更改为空格。
iphone - How to remove whitespace in a string? - Stack Overflow
WebObject library not visible when click on XIB in xcode ios; Expected identifier or on Xcode closed; xcode 5 UITableView always fills entire length of screen; Cocoa Document Won t Open Again After It s Closed; Building Objective C Command Line App; Unable to detect cause of memory leak; xCode 5 tabbed application not building on iPhone with iOS 6 Web2 sep. 2011 · str = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; // trim fisher buggys.com
NSMutableCharacterSet.Whitespaces Properti (Foundation)
Web4 dec. 2011 · 2 Answers Sorted by: 49 use rangeOfCharactersFromSet: NSString *foo = @"HALLO WELT"; NSRange whiteSpaceRange = [foo rangeOfCharacterFromSet: … Webios. How to broadcast live video from iPhone; How to do [UIImage resizableImageWithCapInsets:] prior to iOS5? AVCaptureSession and … WebIos 如何在objective-c中扫描字符串数组中的一组子字符串?,ios,objective-c,xcode,Ios,Objective C,Xcode,所以我基本上有一系列的单词和短语。其中一些包含诅咒。我想创建一个方法,自动扫描数组中的每个单元以查找诅咒。 canada trust st thomas