I follow this post to show GIF image.
I have tried:
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
animatedImageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"splash.gif"], nil];
animatedImageView.animationDuration = 6.0f;
animatedImageView.animationRepeatCount = 10;
[animatedImageView startAnimating];
[self.view addSubview: animatedImageView];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
I added GIF image to my project. But GIF image not show.