title: Animated button not visible in UITableViewCell
body: <p>My application has a list of servers in an UITableView, which among other things show if you are connected to the server with an image. This is currently working fine with static images.</p>
  
  <p>I now want to add a very rudimentary animation that shows that it's in the process of connecting to a server. Just blinking between "connected" and "disconnected" images.</p>
  
  <p>But when I set the image of the button to an animation it displays nothing at all, not any frame of the animation, not the default image of the tablecell, just blank. Creating an animation like this works on buttons in the view that are not in the table so creating the animation is not the issue. It does start playing when the button is pressed, making me think the button just needs a refresh or forced redraw. But I haven't been able to find anything.</p>
  
  <p>I reload my table using reloadData.</p>
  
  <p>(Simplified) Source of ServerCell.h:</p>
  
  <pre><code>@interface ServerCell : UITableViewCell 
  
      @property (nonatomic, strong) IBOutlet UILabel *nameLabel;
      @property (nonatomic, strong) IBOutlet UILabel *ipLabel;
      @property (nonatomic, strong) IBOutlet UIImageView *serverImageView;
      @property (weak, nonatomic) IBOutlet UIButton *mConnectionBtn;
  
  @end
  </code></pre>
  
  <p>ServerCell.m</p>
  
  <pre><code>@implementation ServerCell
  
  #pragma mark - Properties
  
  @synthesize nameLabel;
  @synthesize ipLabel;
  @synthesize serverImageView;
  @synthesize mConnectionBtn;
  
  #pragma mark - Constructor/Destructor 
  
  /////////////////////////////////////////////////////////////////
  /*
   * Class constructor
   */
  - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  {
      self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
      if (self) {
          // Initialization code
      }
      return self;
  }
  
  #pragma mark - Class Methods
  
  /////////////////////////////////////////////////////////////////
  /*
   * Communicate to the superview the user selection
   */
  - (void)setSelected:(BOOL)selected animated:(BOOL)animated
  {
      [super setSelected:selected animated:animated];
  }
  
  @end
  </code></pre>
  
  <p>cellForRowAtIndexPath:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      // Cast the TableCell to a custom ServerCell
      ServerCell *cell = (ServerCell *)[tableView dequeueReusableCellWithIdentifier:@"ServerCell"];
  
      [cell.mConnectionBtn addTarget:self action:@selector(ActionServerCell:) forControlEvents:UIControlEventTouchUpInside];
  
      NSArray* images = [NSArray arrayWithObjects:[UIImage imageNamed:@"connected.png"], [UIImage imageNamed:@"disconnected.png"], nil];
      UIImage* anim = [UIImage animatedImageWithImages:images duration:1.0];
  
      [cell.mConnectionBtn setImage:anim forState:UIControlStateNormal];
  
      // return the cell object
      return cell;
  }
  </code></pre>