| //加载的球体-------------播放gif的动画 |
// CGFloat WH= 60;
// CGFloat imX= (kScreenWidth - WH) / 2;
// CGFloat imY= (kScreenHeight - WH) / 2 - 80;
// NSString *path = [[NSBundle mainBundle] pathForResource:@"loading" ofType:@"gif"];
// NSURL *bannerUrl = [NSURL fileURLWithPath:path];
// self.netErrorIcon = [[FLAnimatedImageView alloc]initWithFrame:CGRectMake(imX, imY, WH, WH)];
// FLAnimatedImage *image = [FLAnimatedImage animatedImageWithGIFData:[NSData dataWithContentsOfURL:bannerUrl]];
// self.netErrorIcon.contentMode = UIViewContentModeScaleToFill;
// self.netErrorIcon.animatedImage = image;
// [self.view addSubview:self.netErrorIcon];