DUXCameraSettingsController在UXSDK 4.8.x中似乎已损坏

时间:2018-12-10 11:52:33

标签: dji-sdk

从4.7.1升级到4.8.x SDK之后,DUXCameraSettingsController停止显示实际的设置面板,但继续显示设置选项卡栏,按这些选项卡不会显示任何设置。这是UXSDK中的错误,还是我只是在使用控制器而已?我找不到有关该特定控制器用法的任何示例。

- (UIView *)view
{
  UIView *view = [UIView new];
  DUXCameraSettingsController *ctrl = [DUXCameraSettingsController cameraSettingsController];
  ctrl.view.translatesAutoresizingMaskIntoConstraints = NO;
  ctrl.view.frame = view.frame;
  [view addSubview:ctrl.view];
  [ctrl.view.topAnchor constraintEqualToAnchor:view.topAnchor].active = YES;
  [ctrl.view.bottomAnchor constraintEqualToAnchor:view.bottomAnchor].active = YES;
  [ctrl.view.leadingAnchor constraintEqualToAnchor:view.leadingAnchor].active = YES;
  [ctrl.view.trailingAnchor constraintEqualToAnchor:view.trailingAnchor].active = YES;
  [ctrl didMoveToParentViewController:nil];
  return view;
}

0 个答案:

没有答案