首页 > 解决方案 > 未找到 MDCBottomDrawerViewController 符号

问题描述

我正在开发一个 iOS 应用程序并使用 material-io 的导航抽屉。我使用示例代码,但运行时收到错误消息。

- (void) viewDidAppear:(BOOL)animated {
    MDCBottomDrawerViewController *bottomDrawerViewController = [[MDCBottomDrawerViewController alloc] init];
    bottomDrawerViewController.contentViewController = [UIViewController new];
    bottomDrawerViewController.headerViewController = [UIViewController new];
    [self presentViewController:bottomDrawerViewController animated:YES completion:nil];
}
dyld: Symbol not found: _OBJC_CLASS_$_MDCBottomDrawerViewController
Referenced from: ***
in: ***/Frameworks/MaterialComponents.framework/MaterialComponents

标签: objective-cmdc-components

解决方案


推荐阅读