im kinda new to iOS, I'm having a hard time with my array, I'm using NSMutableArray,I have put my array in the AppDelegate,
At first load of the app in my viewController the array has no object in it yet, I have a setting that put my integers in the array,
but after saving the array was not loaded, but when exited then reOpen, it will load,
Could please someone explain how can I solve and why is it like this?
Im using it tableview.
in app delegate:
self.integers = [NSMutableArray array];
for(int i = 0; i <= 10; i++)
{ .....
}
loading:
integers = ((AppDelegate *)[[UIApplication sharedApplication] delegate]).integers;