Please select Into the mobile phone version | Continue to access the computer ver.
Hide Widget
89 3 9-23 23:19
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_63wKgIaTThDE
lvl.1

Cyprus
Offline

Hello. I use DashboardWidget, and sometimes i want to hide this widget on my layout. How can i do this?
dji uixsdk 4.13


9-23 23:19
Use props
JohanH
lvl.4
Flight distance : 30479 ft

Netherlands
Offline

In DefaultLayoutController (in Objective C) :

DUXWidgetItem *dashBoardWidgetItem = self.dockViewController.dockView.widgets.firstObject;
UIView<DUXWidgetProtocol> *dashBoardWidget = dashBoardWidgetItem.widget;
dashBoardWidget.hidden = YES;

-Johan
9-28 07:19
Use props
DJI_Lisa
Second Officer
United States
Offline

If you are coding for Android, here is a sample code in our beta UX SDK that maybe helpful for you: DashboardWidget.java
9-29 10:42
Use props
djiuser_63wKgIaTThDE
lvl.1

Cyprus
Offline

very thanks
9-29 21:50
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules