我有三個NSMutabelArrays,分別包含大約十串,例如:iphone:如何使對象的數組,從其他陣列
1stArray = [NSMutableArray arrayWithObjects:@"a",@"b",@"c",@"d",@"e",@"f",@"g",@"h",@"i",nil];
2ndArray = [NSMutableArray arrayWithObjects:@"j",@"k",@"l",@"m",@"n",@"o",@"p",nil];
3rdArray = [NSMutableArray arrayWithObjects:@"q",@"r",@"s",@"t",@"u",@"v",@"w",nil];
現在我想和那些第一次2個對象第4 NSMutabelArrays 3 NSMutableArray。 比如我想一個4陣列是這樣的:
4thArray = [@"a",@"b",@"j",@"k",@"q",@"r"]
如何實現這一目標?
[NSArray的類參考(https://developer.apple.com/library/ios/代碼文檔/ Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html),[NSMutableArray Class Reference](https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference /Reference.html) – Desdenova
不會使用第一,第二,第三個 – NullData