视频直播源码,加载gif图片
视频直播源码,加载gif图片
NSImage *img = [NSImage imageNamed:@"earth.gif"]; // or similar
// [self.window.contentView setWantsLayer:YES];
_imageView.imageScaling = NSImageScaleNone;
_imageView.animates = YES;
_imageView.image = img;
_imageView.canDrawSubviewsIntoLayer = YES;
[_imageView setImage:img];
以上就是 视频直播源码,加载gif图片,更多内容欢迎关注之后的文章