我想我的雨燕传递Array account.chats到chatsViewController.chats引用(这样当我加入聊天account.chats,chatsViewController.chats仍然指向account.chats).即,我不希望Swift在account.chats更改长度时将两个数组分开.
Array
account.chats
chatsViewController.chats
arrays pass-by-reference swift
arrays ×1
pass-by-reference ×1
swift ×1