I have 2 arrays:
Array one: (@"26", @"26", @"25", @"25", @"3", @"3", @"4", @"4")
Array two: (@"sticker", @"sticker", @"sticker", @"sticker", @"sticker", @"frame", @"frame", @"frame")
Edit
These 2 arrays are connected like this:
26 - sticker
26 - sticker
25 - sticker
25 - sticker
3 - frame
3 - frame
4 - frame
4 - frame
I'm getting unique value in array one and putting it in another array like this:
NSArray *uniqueArrayOne = [[NSSet setWithArray:arrayOne] allObjects];
So uniqueArrayOne looks like this:
(26, 25, 3, 4)
I want uniqueArrayTwo
to also be arrange like how uniqueArrayOne
was arranged. I want uniqueArrayTwo
to look like this:
(sticker, sticker, frame, frame)
What do I do?
Edit
Here is another example:
Array one: (@"TONY", @"SANSA", @"BILL", @"BILL", @"STEVE", @"STEVE")
Array two: (@"STARK", @"STARK", @"GATES", @"GATES", @"JOBS", @"JOBS")
The results should be like this:
uniqueArrayOne :(TONY, SANSA, BILL, STEVE)
uniqueArrayTwo :(STARK, STARK, GATES, JOBS)
uniqueArrayTwo
is arrange depending on uniqueArrayOne
.