Problem with NSMutableArray?

Posted by RRB on Stack Overflow See other posts from Stack Overflow or by RRB
Published on 2011-01-07T09:49:07Z Indexed on 2011/01/07 9:53 UTC
Read the original article Hit count: 133

Filed under:

Hi, i initialize instance variables in .h file,

NSInteger saveValue0, saveValue1, saveValue2, saveValue3;

NSMutableArray *nodeArray;

Now in .m file, in viewWillAppear event,

saveValue0 = 0; 
saveValue1 = 2; 
saveValue2 = 3;
saveValue3 = 0;

nodeArray = [[NSMutableArray alloc] initWithObjects:saveValue0, saveValue1, saveValue2, saveValue3, nil]; 

But above variable does not inserted in the array. When i trying to see the objects in array using break point, it gives me 0 objects present in nodeArray. Why it will give me 0 objects. Any reason behind that?

© Stack Overflow or respective owner

Related posts about iphone