objective c - MFSideMenu is not working in iOS? -
hi have followed github page add mfsidemenu , showing following error.
undefined symbols architecture x86_64: "_objc_class_$_mfsidemenucontainerviewcontroller", referenced from: objc-class-ref in appdelegate.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation)
this 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 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; }
in general, occur when code boxview not being compiled target correctly.
you need ensure target you're building has corresponding box checked mfsidemenucontainerviewcontroller.m implementation file.
a 'clean , build' never hurts, either.
Comments
Post a Comment