hello guys sorry for my stupid question (beginner) I got the demo program Accelerometergraph the apple site and would like to use mutablearray in the values of acceleration x. but my mutablearray contains only one object, there being several passage mutablearray routine and should contain the same number of objects that the counter show, how code below
if(!isPaused)
{
array = [[NSMutableArray alloc] init];
[filter addAcceleration:acceleration];
[unfiltered addX:acceleration.x y:acceleration.y z:acceleration.z];
NSNumber *number = [[NSNumber alloc] initWithDouble:acceleration.x];
[array addObject:number];
++a;
if (a == 30) // only check the # objs of mutablearray
{
sleep(2);
}
[filtered addX:filter.x y:filter.y z:filter.z];
}