ios - Can I have two ECSlidingViewController Drawer from left and right? -
i want have 2 drawer menus, 1 left right. possible using ecslidingviewcontroller 2
. if no can suggest better way achieve same?
check out library residemenu easy , have left , right menus
here sample code
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { uiviewcontroller *firstviewcontroller;// initial view controller uinavigationcontroller *navigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:firstviewcontroller]]; uiviewcontroller *leftmenuviewcontroller; // left menu uiviewcontroller *rightmenuviewcontroller; // right menu residemenu *sidemenuviewcontroller = [[residemenu alloc] initwithcontentviewcontroller:navigationcontroller leftmenuviewcontroller:leftmenuviewcontroller rightmenuviewcontroller:rightmenuviewcontroller]; sidemenuviewcontroller.backgroundimage = [uiimage imagenamed:@"stars"]; [self.window makekeyandvisible]; return yes; }
Comments
Post a Comment