[英]How to remove doubleinvetedcoma in array make array on click table view Cell
我有一个表视图单元格,用户单击表单元格,然后在我的Array变量中添加多值值,我知道如何在数组中添加,但问题是当我在数组中添加值时,像这样的值["one","two","three","somthing"]
。
我想删除""
。 这是我的代码:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString * cellValue=nil;
if (tableView==nurseTypeTable) {
cellValue=[arrayNurseType objectAtIndex:indexPath.row];
NSLog(@"%@",cellValue);
[_nurseArray addObject:cellValue];
NSLog(@"%@",_nurseArray);
} else {
cellValue=[arraySpecialities objectAtIndex:indexPath.row];
NSLog(@"%@",cellValue);
[_selectionArray addObject:cellValue];
NSLog(@"%@",_selectionArray);
}
}
[_nurseArray addObject:cellValue];
NSLog(@"%@",_nurseArray);
这是我的数据显示
YourNurse[2337:90b] (
" one ",
" two ",
"three"
)
如何删除我的退货数据中的""
?
请帮助我,请分享您的宝贵知识
正如我在评论中所说,双引号被显示来让您知道它是一个字符串。
您的值不包含引号。 只是调试区域中的显示格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.