gpt4 book ai didi

ios - MMDrawerViewController 设置

转载 作者:行者123 更新时间:2023-11-29 10:39:11 25 4
gpt4 key购买 nike

我正在尝试设置一个名为 MMDrawerViewController 的 pod,它会创建一个滑动抽屉。我有一个导航 Controller ,它的堆栈中有几个 TableView Controller 。我将其插入到 NavigationViewController.m 文件中:

- (void)viewDidLoad
{
[super viewDidLoad];

//Initializing the MMDrawerController views
UIViewController * leftDrawer = [[UIViewController alloc] init];
UIViewController* centerViewController = [[UIViewController alloc] init];

MMDrawerController * drawerController = [[MMDrawerController alloc] initWithCenterViewController:centerViewController leftDrawerViewController:leftDrawer];
}

但是当我把它放进去时,我得到了以下错误:

Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MMDrawerController", referenced from: objc-class-ref in NavigationViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我应该做些什么不同的事情吗?

最佳答案

我将此作为答案发布,这样这个问题就不再没有答案了。

您遇到此问题是因为您的项目没有编译您在 NavigationViewController.m 中使用的 MMDrawerController.m 文件。此外,请确保将 MMDrawerController.h 导入 NavigationViewController.m

关于ios - MMDrawerViewController 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25350207/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com