首页 > 学院 > 开发设计 > 正文

播放gif动画 (用的是三方的框架)

2019-11-09 18:50:05
字体:
来源:转载
供稿:网友
   //加载的球体-------------播放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];


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表