我有一个UITableViewCell内一个UIImageView。 该动画的UIImageView。 对于一些奇怪的原因,当电池超出来看,动画停止。 该的UIImageView是永远不会再次初始化和的UIImageView从未明确告知 - (无效)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方式。