Мне нужно создать таблицу с вращающейся кнопкой в каждой ячейке.
Вот мой метод анимации класса CustomCell
- (void)animateButton {
__block CustomCell *block_button = self;
void (^animationBlock)(void) = ^(void) {
block_button.downloadBackButton.transform =
CGAffineTransformMakeRotation(M_PI * 2/3);
};
[UIView animateWithDuration:3.0
delay:0.0
options:UIViewAnimationOptionRepeat|UIViewAnimationOptionCurveLinear
animations:animationBlock
completion:nil];}
И мой CustomTableViewController cellForRowAtIndexPath: метод:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"cell";
FAMasterTableCell *cell = (CustomCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:CellIdentifier owner:self options:nil];
cell = (CustomCell *) [nib objectAtIndex:0];
}
[cell animateButton];
return cell;
}
Проблема в том, что представление таблицы на iPod прерывистое, но на iPhone 4s работает нормально.
Есть предложения?