I have 2 doublings with each iteration that I want to add in NSMutableArray, but I can't seem to happen.
NSMutableArray *touchArray = [[NSMutableArray alloc]init];
[touchArray addObject:[NSString stringWithFormat:@"%d", "%d", tapTotal, touchBegin]];
NSLog(@"array: %@", touchArray);
The console prints 14108 as the value for the array, I'm not sure where it comes from, this is not the value of any of the variables. And Xcode complains about the first two lines, the "local touchArray declaration hides the instance variable. I know that I am doing at least one thing wronl
Thanks for any help, Robert
source
share