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

    xiaoxiao2021-03-26  25

        //加载的球体-------------播放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];

    转载请注明原文地址: https://ju.6miu.com/read-664243.html

    最新回复(0)