如何在Swift中更改DJI UI SDK状态栏上的标志图标DULStatusBarViewController?

问题描述:

在DJI演示代码,如何在Swift中更改DJI UI SDK状态栏上的标志图标DULStatusBarViewController?

var statusBarVC = DULStatusBarViewController() 
guard let preflightChecklistWidget = self.statusBarVC.widget(at: 1) else { 
     return; 
    } 

我们可以得到widget对象。但我不确定如何更改DJI徽标。

我可以创建一个新的部件来替换它吗?

http://developer.dji.com/mobile-sdk/documentation/introduction/ui_library_introduction.html#asset-swap

根据该文件,你需要换出的资产。他们需要保持与原件相同的名称和像素尺寸。