У меня есть UIImageView внутри UITableViewCell. UIImageView оживляет. По какой-то странной причине, когда ячейка выходит из поля зрения, анимация останавливается. UIImageView никогда не инициализируется снова, и UIImageView никогда явно не сообщается - (void) stopAnimating; поэтому я не уверен, почему он останавливается.
Вот интересные части моего cellforRowAtIndexPath :. Как вы можете
cell = (BOAudioCell *)[tableView dequeueReusableCellWithIdentifier:AudioCellIdentifier];
if (!cell) {
cell = [[[BOAudioCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:AudioCellIdentifier] autorelease];
BOPlayControl *playControl = [(BOAudioCell *)cell playControl];
[[playControl playbackButton] addTarget:self action:@selector(playbackButtonTapped:) forControlEvents:UIControlEventTouchUpInside];
}
int index = [indexPath row];
BOModel *model = [models objectAtIndex:index];
[[(BOAudioCell *)cell titleLabel] setText:[model title]];
[[(BOAudioCell *)cell favoriteButton] addTarget:self action:@selector(favoriteButtonTapped:) forControlEvents:UIControlEventTouchUpInside];
Как вы можете сказать, я не устанавливаю соответствующую начальную точку анимации для ячейки, потому что нет встроенного способа с UIImageView.