views:

51

answers:

1

I have a custom view with additional layers and a simple endless animation (using core animation). The view is a subclass of UITableViewCell and therefore doesn't have it's own view controller.

The animation gets stopped whenever the view disappears, which is fine. But how do I restart the animation when the view reappears?

A: 

I found one way of doing it. This might not be the best solution, but at least it's very simple. Just add this in the corresponding UITableViewController:

-(void)viewWillAppear:(BOOL)animated{
    [self.tableView reloadData];
}
hanno