I have five integers.I added all integers to a mutableArray and shuffled it.
int A = 1;
int B = 2;
int C = 3;
int D = 4;
int E = 5;
myArray = [2,1,3,5,4]; //shuffled array
is it possible to get variable names of each integer in the array?
please help me.
In this case NSDictionary would be feasible, you can store both the Variable Names and their Values:
Now you can fetch all the keys of the dictionary like:
And you can fetch the values for those keys like: