我有四個陣列如下:如何複製數組?
toArray = [[NSMutableArray alloc] initWithObjects:@"to 1",@"to 2",@"to 3",@"to 4",@"to 5",@"to 6",@"to 7",nil];
fromArray = [[NSMutableArray alloc] initWithObjects:@"from 1",@"from 2",@"from 3",@"from 4",@"from 5",@"from 6",@"from 7",nil];
messageArray = [[NSMutableArray alloc] initWithObjects:@"message 1",@"message 2",@"message 3",@"message 4",@"message 5",@"message 6",@"message 7",nil];
dayArray = [[NSMutableArray alloc] initWithObjects:@"day 1",@"day 2",@"day 3",@"day 4",@"day 5",@"day 6",@"day 7",nil];
我想複製或建立一個單一的陣列,其應該包含所有這4個陣列。 我該如何實現它?
你是什麼意思由「包含「[[1a,1b],[2a,2b]]或'[1a,1b,2a,2b]'? – kennytm 2010-06-04 07:06:10