objective-c - 未找到 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
解决方案
推荐阅读
- python - Sympy 返回日志而不是 ln
- reactjs - setState 不会在 intervalRef 内更新
- azure - 使用内置策略时 Azure AD B2C“用户名或密码无效”
- python-3.x - “配额组'ReadGroup'的配额超出并限制'每100秒每个用户的读取请求'服务google api
- json - Azure Blob 的奇怪编码问题导致无法从 JSON 转换为对象
- android - ReactNative 中的可访问性标识符问题
- reactjs - 功能组件上的反应更新状态钩子不允许点符号
- javascript - 如何管理 Google reCaptcha v3 中的错误消息(不可见)
- javascript - iOS Safari Javascript 不起作用,但适用于桌面和 Android
- python - 雪花数据卸载到 csv 文件