Cannot add items to an NSMutableArray ivar

I’m assuming you haven’t initialized listOfEvents.

Make sure you do listOfEvents = [[NSMutableArray alloc] init]; in your class’s init method. Also make sure you release it in your class’s dealloc method.

Leave a Comment