title: Objective C - how to play animated gif image
body: <p>I am trying to display animated gif but it doesn't work they stay still.</p>
  
  <pre><code>UIView * tak = [[UIView alloc] initWithFrame:CGRectMake(-10, 0, 560, 685)];
  UIImage *image = [UIImage imageNamed:@"animated-f.gif"];
  UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
  imageView.frame = tak.bounds;
  [tak addSubview:imageView];
  [self.view addSubview:tak];
  </code></pre>