2
私のアプリケーションデリゲートでは、初めてアプリケーションを起動するためのサインアップ画面を表示します。ここでModalViewControllerがアニメーション化されている場合にのみ表示されます
は私のコードです:
[[self tabBarController] presentModalViewController:signUp animated:YES] ;
:私は、行を変更する場合
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window.rootViewController = self.tabBarController;
[[[self.tabBarController.tabBar items] objectAtIndex:2] setEnabled:NO];
[[[self.tabBarController.tabBar items] objectAtIndex:3] setEnabled:NO];
if (![self checkAuth]) {
SignupViewController * signUp = [[SignupViewController alloc] initWithNibName:@"SignupView" bundle:nil] ;
[signUp setManagedObjectContext:self.managedObjectContext];
[[self tabBarController] presentModalViewController:signUp animated:YES] ;
[signUp release] ;
}
[self.window makeKeyAndVisible];
return YES;}
すべてが正常に動作しますが、私は私のmodalViewControllerをアニメーション化したくない...
:
[[self tabBarController] presentModalViewController:signUp animated:NO] ;
下にあるtabBarControllerが表示され、私のmodalViewControllerが表示されません!
私は同様の問題を持つ人を検索するために多くの時間を費やしたが、私はすべてのソリューションが見つかりませんでした...
誰かが私を助けてくださいことができますか?
これは解決策です。できます。どうもありがとう。なぜなのかご存知ですか ? – Julien
私はアニメーション==はいと思うが、実際にはmodalViewを追加する前にウィンドウを表示するmodalViewを提示している間に少し遅れがあります。アニメーション化されている場合==いいえウィンドウは表示されず無視される間にmodalViewが追加されます。 – AlexVogel
このような説明に感謝します。 – Julien