NSMutableArray *array = [[NSMutableArray alloc] initWithArray:@[@"1",@"2",@"3"]];
NSString*str = array[0];
str = @"10";
NSLog(@"%@",array);
array[0] = @“10”;
NSLog(@"%@",array);
NSMutableArray *array = [[NSMutableArray alloc] initWithArray:@[@"1",@"2",@"3"]];
NSString*str = array[0];
str = @"10";
NSLog(@"%@",array);
array[0] = @“10”;
NSLog(@"%@",array);
本文标题:关于数组赋值 指针 常见错误问题
本文链接:https://www.haomeiwen.com/subject/pffsvftx.html
网友评论