In swift how do I put a pointer into an array?
I have several arrays, in all of them I make reference to a variable and when I change it I need it to update in all the other arrays.
Edit: Basically i have an array
var ExampleArray : NSMutableArray = [
0,
"TestString",
["*"],
9,
]
What i want to do is add a pointer to the array so it would be like
var ExampleArray : NSMutableArray = [
0,
"TestString",
["*"],
9,
//Pointer Here
]
The pointer is to a string that features in many arrays, if update its value in one array i want it to update in all the arrays
How do i declare this?
Thanks