https://服务器地址/LightCore.bundle.zip。Document/Xmagic)。此时 Document/Xmagic 文件夹里面有 SDK 需要的资源。
NSDictionary *assetsDict = @{@"core_name":@"LightCore.bundle",@"root_path":_filePath //_filePath为美颜资源下载到本地后的父目录:xx/Ducument/Xmagic,};// Init beauty kit @"root_path":Ducument/Xmagic,self.beautyKit = [[XMagic alloc] initWithRenderSize:_inputSize assetsDict:assetsDict];
文档反馈