嗨,我已經按照此github頁面添加MFSideMenu並顯示以下錯誤。MFSideMenu不適用於iOS?
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_MFSideMenuContainerViewController", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
這是我的AppDelegate
- (ViewController *)demoController {
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
ViewController *main = (ViewController *)[mainStoryboard instantiateViewControllerWithIdentifier:@"home"];
return main;
}
- (UINavigationController *)navigationController {
return [[UINavigationController alloc]
initWithRootViewController:[self demoController]];
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
leftMenuController *leftMenuViewController = [[leftMenuController alloc] init];
MFSideMenuContainerViewController *container = [MFSideMenuContainerViewController
containerWithCenterViewController:[self navigationController]
leftMenuViewController:leftMenuViewController
rightMenuViewController:nil];
self.window.rootViewController = container;
[self.window makeKeyAndVisible];
return YES;
}
chcek你h和.M目標正確添加或不 –
我編譯源看起來像附截圖 – Bangalore
哪裏是你mfide菜單CLAS –