Hello,
I'm having trouble finding the solution for the following problem:
I have this piece of code:
Code:
int vraagNummers[result.count];
int i;
int j;
int r;
for (i = 0; i < result.count; i++) {
vraagNummers[i] = i;
}
for (i = (result.count - 1); i > 0; i--) {
r = arc4random() % (i + 1);
if (r < i) {
j = vraagNummers[i];
vraagNummers[i] = vraagNummers[r];
vraagNummers[r] = j;
}
}
for (int i = 0; i < 50; i++) {
NSDictionary *stream = (NSDictionary *)[result objectAtIndex:vraagNummers[i]];
--rest of code--
This is giving me the following warning when I build + analyze:
Code:
Pass-by-value argument in message expression is undefined
This warning is beneath "..onary *)[result objectAtIndex:
vraagNummers[i]];"
Does anyone see what I'm doing wrong here? Can you tell me the solution?
Regards,
Rick