dji-sdk / Mobile-UXSDK-iOS

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.
Other
72 stars 40 forks source link

Add Widget to DULStatusBarViewController make icon bigger than others. #22

Closed guicolares closed 7 years ago

guicolares commented 7 years ago

I would like add some other Widgets on StatusBarViewController from UILibrary but that is bigger than others even change the frame.

Here is my code below to add the widget: "ViewWillAppear": self.statusBarVC.addWidget(DULRemoteControlSignalWidget(frame: CGRect(x: 0, y: 0, width: 63, height: 25))) self.statusBarVC.statusBarView?.reloadData()

I am using: DJI-SDK-iOS, 4.3 DJI-UILibrary-iOS, 4.3 Xcode 9 Device tested 10 and 11

There is a image to make easier understand my problem below. img_0167

Thanks to made this Library for us.

aksh1t commented 7 years ago

Instead of just doing addWidget, use the other method with addWidget:withEdgeInsets and set the insets to be 10 for bottom and top. It should adjust similar to the other widgets then.

guicolares commented 7 years ago

It worked!!!

Thanks, you are the guy.