<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                @首先要實現協議 ~~~ //設置代理 tabBarController.delegate?=self; //UINavigationController nav tabBarController.moreNavigationController; //[nav setNavigationBarHidden:YES animated:YES]; //控制哪些ViewController的標簽欄能被點擊 -(BOOL)tabBarController:(UITabBarController)tabBarControllershouldSelectViewController:(UIViewController)viewController{ //代表HMT_CViewController這個View無法顯示,無法點擊到它代表的標簽欄 if([viewControllerisKindOfClass:[HMT_CViewControllerclass]]) { returnNO; } returnYES; } //?選中哪個標簽欄,一個監控作用吧 (void)tabBarController:(UITabBarController?*)tabBarControllerdidS electViewController:(UIViewController*)viewController{ } // More view controller將要開始編輯 (void)tabBarController:(UITabBarController)tabBarControllerwillBe ginCustomizingViewControllers:(NSArray)viewControllers{ } // More view controller將要結束編輯 (void)tabBarController:(UITabBarController)tabBarControllerwillEn dCustomizingViewControllers:(NSArray)viewControllers changed:(BOOL)changed{ } // More view controller編輯 (void)tabBarController:(UITabBarController)tabBarControllerdidEnd CustomizingViewControllers:(NSArray)viewControllers changed:(BOOL)changed{ } #import?"HMT-AViewController.h" #import?"HMTModalShowViewController.h" @interfaceHMT_AViewController?() @end @implementation?HMT_AViewController (void)viewDidLoad { [superviewDidLoad]; self.view.backgroundColor?= [UIColorredColor]; //創建一個按鈕 UIButton button = [UIButton?buttonWithType:UIButtonTypeDetailDisclosure]; button.frame?=CGRectMake(100,100,100,?100); [button?addTarget:self?action:@selector(modalShow)forControlEvents:UIControlEventTouchUpInside]; [self.view?addSubview:button]; // Do any additional setup after loading the view. } (void)modalShow{ HMTModalShowViewController modalShowVC = [[HMTModalShowViewController?alloc]init]; //模態視圖控制器呈現出來時候的視覺效果 modalShowVC.modalTransitionStyle?=UIModalTransitionStyleCrossDissolve; /* UIModalTransitionStyleCoverVertical = 0, //默認,由下往上 UIModalTransitionStyleFlipHorizontal,//水平轉動效果 UIModalTransitionStyleCrossDissolve,//漸變效果 UIModalTransitionStylePartialCurl,//書頁往上翻動效果 */ //模態視圖控制器呈現方式,默認全屏 modalShowVC.modalPresentationStyle?=UIModalPresentationFullScreen; /* UIModalPresentationFullScreen = 0, UIModalPresentationPageSheet, UIModalPresentationFormSheet, UIModalPresentationCurrentContext, UIModalPresentationCustom, UIModalPresentationNone = -1, */ UINavigationController?* modalShowNC = [[UINavigationController?alloc]?initWithRootViewController:modalShowVC]; //推出模態視圖控制器 [self?presentViewController:modalShowNC?animated:YES?completion:^{ NSLog(@"hello world"); }]; } #import?"HMTModalShowViewController.h" @interfaceHMTModalShowViewController?() @end @implementation?HMTModalShowViewController (void)viewDidLoad { [superviewDidLoad]; // Do any additional setup after loading the view. self.view.backgroundColor?= [UIColor?yellowColor]; //利用UINavigationController來實現退出控制器 UIBarButtonItem?* barButton = [[UIBarButtonItem?alloc]?initWithBarButtonSystemItem:UIBarButtonSystemItemAdd?target:self?action:@selector(modalDismiss)]; self.navigationItem.leftBarButtonItem?= barButton; self.navigationItem.title?=@"humingtao"; //創建一個按鈕來實現退出控制器 /*UIButton button = [UIButton buttonWithType:UIButtonTypeDetailDisclosure]; button.frame = CGRectMake(100, 100, 100, 100); [button addTarget:self action:@selector(modalDismiss) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:button]; */ } (void)modalDismiss{ //退出模態視圖控制器 [self?dismissViewControllerAnimated:YES?completion:^{? NSLog(@"退出GoodBye"); }]; } @end ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看