2016-04-07 8 views
0

を持つ画面全体をフェード私はアプリの上に一致している、私のアプリでtabbarControllerを持っています、と私は上のClickMeButtonを持っていますviewcontroller1の1に私は、tabbarItemviewcontrollerをそれぞれ接続していますそのクリック私はviewController2を提示する前にviewController2を提示する前に私はtabbarstatusBarを含む画面全体をフェードアウトしたいときに、そしてアニメーションが終了するとviewController2を表示したいときにもう一度Buttonをクリックしてフェードインしたいviewcontrollerを却下します。フェードアウトとタブバーコントローラ

ありがとうございます。 私はアニメーションではあまり仕事をしていませんが、これで私を助けてください。

答えて

0

私はこのような気にいらなかった:私はこれが誰かの役に立てば幸い

UIWindow *statusWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 
statusWindow.windowLevel = UIWindowLevelStatusBar; 
statusWindow.hidden = NO; 
statusWindow.backgroundColor = [UIColor clearColor]; 
[statusWindow makeKeyAndVisible]; 

[UIView animateWithDuration:0.5f animations:^{ 
      [statusWindow setBackgroundColor:[[UIColor whiteColor] colorWithAlphaComponent:1.0]]; 
     } completion:^(BOOL finished){ 
      statusWindow.backgroundColor = [UIColor clearColor]; 
      [statusWindow release]; 
     }]; 

を。 :-)

関連する問題