Hi
I am new to this objective c
I have created the one mutable array in appdelegate. I am trying to retrieve values of that mutable array in another app. But it is crashing at that point. below is the code i have declared in appdelegate
savedLocation = [[NSMutableArray alloc] init];
savedLocation = [[NSMutableArray arrayWithObjects:
[NSNumber numberWithInteger:0],
nil] retain];
below is code i trying to access the array values in another application through appdelegate
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
NSInteger selection = [[appDelegate.savedLocation objectAtIndex:0] integerValue];
but it is crashing at
NSInteger selection = [[appDelegate.savedLocation objectAtIndex:0] integerValue];
please tell me the reason why it is crashing? and correct way also