romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.
MIT License
7.09k stars 1.35k forks source link

When I use RESideMenu with the tabBarController that defined by myself , I got an error. #272

Open JokerMing opened 8 years ago

JokerMing commented 8 years ago

The error is: 'NSInvalidArgumentException', reason: '-[RESideMenu tabBar]: unrecognized selector sent to instance 0x7f873b053a00'

My code in didFinishLaunchingWithOptions is:

self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; //侧滑菜单 YZTabBarController tabBarController = [[YZTabBarController alloc]init]; YZPesonalCenterViewController personalVC = [[YZPesonalCenterViewController alloc]init]; RESideMenu *container = [[RESideMenu alloc]initWithContentViewController:tabBarController leftMenuViewController:personalVC rightMenuViewController:nil];

please help me! thanks!