I have a navigational based application which has multiple views. Is it possible to use one single NSMutableArray for the whole applicaiton? Can i add objects to that NSMuta
On the Singleton approach add this
Singleton
instance.arrGlobal = [[NSMutableArray alloc] init];
this way:
@synchronized(self) { if(instance==nil) { instance= [DataClass new]; instance.arrGlobal = [[NSMutableArray alloc] init]; } } return instance;
This way you can initilize the array and use it properly.