I'm using appDelegate for sharing NSMutableArray but it's crashing. Error message is unrecognized selector sent to instance
countrydata *countryobj=(countrydata *)[listItems objectAtIndex:indexPath.row];
if(addItems==nil)
{
addItems=[[NSMutableArray alloc]init];
}
[addItems addObject:countryobj];
callAppDelegate *appDelegate = (callAppDelegate *)[[UIApplication sharedApplication] delegate];
appDelegate.AddItems=addItems;
[self dismissModalViewControllerAnimated:YES];
Where is my code is wrong ? appdelegate.AddItems is NSMultableArray and already decleare in callAppDelegate.h. I already import callAppDelegate.h in top.