문제

so, I tried creating a project using this awesome DDMenuController and set a list menu controller in the left, with just datasource of three20's items, like this:

[section addObject:[TTTableTextItem itemWithText:@"Groups" 
                                             URL:@"tt://groups"]];

[section addObject:[TTTableTextItem itemWithText:@"Friends" 
                                             URL:@"tt://friends"]];

[section addObject:[TTTableTextItem itemWithText:@"Updates" 
                                             URL:@"tt://updates"]];

and these url's i set in the URL Map as Shared View Controllers.

The problem here is nothing happens when i tap on the cell which should basically just push to a specified view controller,

But when i tried setting my right controller the same controller with my left controller, it works.

도움이 되었습니까?

해결책

I didnt notice that DDMenuController overided

(void)pushViewController:(UIViewController *)viewController 
                animated:(BOOL)animated

so i just add some codes to enable pushing in left view controller:

- (void)pushViewController:(UIViewController *)viewController 
                  animated:(BOOL)animated {

   //DDMenuController code here...


  else {
     [self showRootController:YES];
     [super pushViewController:viewController animated:NO];
  }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top