加载本地的动态图片(.gif)
//需要SDWebImage方法
NSString *name = @"loading.gif";
NSString *filePath = [[NSBundle bundleWithPath:[[NSBundle mainBundle] bundlePath]] pathForResource:name ofType:nil];
NSData *imageData = [NSData dataWithContentsOfFile:filePath];
self.loadingImageView.image = [UIImage sd_animatedGIFWithData:imageData];
self.loadingImageView.frame = CGRectMake(0, 0, 100, 250/2.0);
[self.view addSubview:self.loadingImageView];
[self.view bringSubviewToFront:self.loadingImageView];