And Here is the addProvider function that adds in a Provider object into the NSMutableArray. This is in appdelegate
Code:
- (void)addProvider:(Provider *)provider{
if(arrProvider == nil)
{
NSMutableArray *Array = [[NSMutableArray alloc] init];
self.arrProvider = Array;
[Array release];
}
[arrProvider addObject:provider];
}