在iOS中,导航显示导航

时间:2016-05-06 16:47:59

标签: ios objective-c uikit

我尝试使用导航节目导航,但过渡动画是从下到上。

UIViewController2 * vc2 = [[UIViewController2 alloc] init];
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:vc2];
[self.navigationController showViewController:nav sender:nil];

1 个答案:

答案 0 :(得分:0)

尝试。

 private int subMenu()   
   {   
      Scanner kb = new Scanner(System.in);
      System.out.println("Display Study Tables selected:\n");
      System.out.println("SUB MENU\n");
      System.out.println("1.   Addition");
      System.out.println("2.   Multiplication");
      System.out.println("Please select an option from the menu:");

      return kb.nextInt();
   }