UITableViewCell - супер сделка EXC_BAD_ACCESS - PullRequest
0 голосов
/ 05 октября 2011

Что может вызвать [super dealloc]; врезаться?

Итак, у меня есть это в моем UITableViewCell

- (void)dealloc
{
    // this is ok
    [others release];

    // this crash
    [super dealloc];
}

В основном у меня есть UITabViewController. Когда я перехожу на другую вкладку и возвращаюсь на эту вкладку, содержащую UITableViewCell, она падает на [super dealloc];

Так называется клетка.

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"DynamicSizedCell";

DynamicSizedCell *cell = (DynamicSizedCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];  
if (cell == nil) {
    cell = [[[DynamicSizedCell alloc] init] autorelease];
}

[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
return cell;

}

Спасибо
Тройник

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...