//数组转变为字符串 字符串转变为数组
NSMutableString * nsstring=[[NSMutableString alloc]initWithFormat:@"21-54-54-845-52-3"];
//把不可变的数组转变为可变数组
NSMutableArray * nsm=[NSMutableArray arrayWithArray:[nsstring componentsSeparatedByString:@"-"]]; //标识
NSLog(@"%@",nsm);
[nsm replaceObjectAtIndex:4 withObject:@"1"];
NSString *ns=[nsm componentsJoinedByString:@","];
NSLog(@"%@",ns);