ECSlidingViewController / ECSlidingViewController

Customizable sliding view controller container.
MIT License
4.32k stars 817 forks source link

Slide menu is not responding to UIButton's Actions #351

Closed abdulmannanbutt closed 10 years ago

abdulmannanbutt commented 10 years ago

Hi,

Actions are not called on buttons when i use ECSlideViewController. I am using simple view controller approach.

Here is my code

COSlideViewController *coSlideViewController = [[COSlideViewController alloc] initWithNibName:@"COSlideViewController" bundle:nil];

//setting tab bar as Top View self.slidingViewController = [ECSlidingViewController slidingWithTopViewController:tabBarControler];

//Adding slide view as left sliding view self.slidingViewController.underLeftViewController = coSlideViewController;

    // enable swiping on the top view
    [tabBarControler.view addGestureRecognizer:self.slidingViewController.panGesture];

    // configure anchored layout
    //self.slidingViewController.anchorRightPeekAmount  = 40.0;
    self.slidingViewController.anchorLeftRevealAmount = 280.0;

    self.window.rootViewController = self.slidingViewController;

ios simulator screen shot 04-jul-2014 10 26 58 am

abdulmannanbutt commented 10 years ago

Sorry my mistake. I have inherited my UIViewController from another Class.