0
我必须缺少一些东西。我试图修剪从数组中拉出的数据,但是我的应用程序崩溃了修剪方法。Objective-C:修整空白
//pull values
NSString* thisXStr = [thisSetArray objectAtIndex:0];
NSString* thisYStr = [thisSetArray objectAtIndex:1];
//cleaning up all the white space
NSString *thisXStrTrim = [thisXStr stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
NSString *thisYStrTrim = [thisYStr stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
错误说的是什么? – kennytm 2010-11-09 14:42:13