我必须错过一些东西。我正在尝试修剪从数组中提取的数据,但我的应用程序在修剪方法上崩溃。
//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]];