以前沒做過這個,第一次見,新奇
_sImg = [[UIImageView alloc] init];
NSString *filePath = [[NSBundle bundleWithPath:[[NSBundle mainBundle] bundlePath]] pathForResource:@"Packet" ofType:@"gif"];
NSData *imageData = [NSData dataWithContentsOfFile:filePath];
_sImg.image = [UIImage sd_imageWithGIFData:imageData];
實際開發(fā)中的使用:http://www.itdecent.cn/p/064218531c27