我我iPhone應用程序而表中分配一個字符串值查看其崩潰,我有在cellForRowAt索引路徑方法iPhone應用程序崩潰
下面的代碼而分配的字符串值表視圖
NSMutableArray *arrTrimmedTblData=[[NSMutableArray alloc]init];
NSMutableString *strTrimmedTblData;
for(int intVar=0;intVar<[array count];intVar++)
{
strTrimmedTblData = [NSMutableString stringWithFormat:@"%@",[array objectAtIndex:intVar]];
[strTrimmedTblData replaceOccurrencesOfString:@"(" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [strTrimmedTblData length])];
[strTrimmedTblData replaceOccurrencesOfString:@")" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [strTrimmedTblData length])];
[strTrimmedTblData replaceOccurrencesOfString:@" " withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [strTrimmedTblData length])];
[strTrimmedTblData replaceOccurrencesOfString:@"\"" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [strTrimmedTblData length])];
[strTrimmedTblData replaceOccurrencesOfString:@"\n" withString:@"" options:NSLiteralSearch range:NSMakeRange(0, [strTrimmedTblData length])];
[arrTrimmedTblData addObject:strTrimmedTblData];
}
NSLog(@"arrTrimmedTblData:%@",arrTrimmedTblData);
NSLog(@"arrTrimmedTblData:%@",[arrTrimmedTblData objectAtIndex:0]);
NSString *cellValue = [arrTrimmedTblData objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
其崩潰在這條線cell.textLabel.text = cellValue;
崩潰日誌:可變cellValue不是CFString字符串
請任何哥們你幫我,感謝名單提前