В функции обратного вызова таймера вы хотите сделать что-то вроде этого.
NSArray* cellArray = [yourTableView visibleCells];
for (UITableViewCell* cell in cellArray)
{
// do your cell by cell rotation here
}
Чтобы сделать это при создании ячейки для бесконечной анимации, вы можете использовать следующий код.Имейте в виду, что если вы кэшируете ячейки, вам нужно делать это только при создании ячейки, а не в ячейках с кэшем.
[UIView beginAnimations:@"looping animation" context:nil];
[UIView setAnimationRepeatCount:0]; // 0 is infinite
[UIView setAnimationDuration:3];
// other animation options here if you'd like, and the duration can be anything, not just 3.
[UIView animateWithDuration:3 delay:0 options:UIViewAnimationOptionRepeat animations: ^{
// do your rotation stuff on your image, in this block, for the cell you will be returning.
} completion:nil];
[UIView commitAnimations];