![](/img/trans.png)
[英]How to store objects of a mutable Array into another mutable array in form of arrays.?
[英]How to send All objects of Mutable Array to Another Class?
我想將可變數組及其所有對象從我的第一類發送到第二類。 我不知道該怎么辦,請任何人告訴我...
嘗試這個:
yourSecondClass.mutableArray_asAMemberVariable = [[yourFirstClass mutableArray_asAMemberVariable] copy];
這將復制出您的firstClass可變數組,並將其發送給第二個類。
您使一個聲明可變數組,並使其成為您想要在其他類上的屬性,然后像下面這樣給
vc.nsmutablearray = the_array_you_want_to_send;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.