В моем классе есть переменная. который является массивом пользовательской модели. Я хочу заполнить эту переменную в методе 1., но приложение вылетает в этой строке: [inboxMessagesArray addObject:entity]
Тема 1: EXC_BAD_ACCESS
В .m файле:
@synthesize inboxMessagesArray;
В файле .h:
@property (nonatomic,retain) NSMutableArray<InboxMessagesResponseEntity *> *inboxMessagesArray;
Mehod1
for (NSDictionary *responseEntityDictionary in dictionary)
{
InboxMessagesResponseEntity *entity = [[InboxMessagesResponseEntity alloc] initWithDictionary:responseEntityDictionary error:&err];
[inboxMessagesArray addObject:entity];
}