UINavigationController *nav = [[[UINavigationController alloc] initWithRootViewController:self.newMenuViewController] autorelease];
            [self presentModalViewController:nav animated:YES];
            
            UIButton *newMenuBackBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect];
            [newMenuBackBtn addTarget:self action:@selector(newMenuBackBtnTapped:) forControlEvents:UIControlEventTouchUpInside];
            newMenuBackBtn.frame = CGRectMake(0, 5, 54, 30);
            UIBarButtonItem *backItem = [[UIBarButtonItem alloc ] initWithCustomView:newMenuBackBtn];
            self.newMenuViewController.navigationItem.leftBarButtonItem = backItem;

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2022-03-02
猜你喜欢
  • 2021-11-15
  • 2021-08-20
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案