私は最初にログインする必要のあるアプリケーションを開発しています。それは実際にはtabBarアプリケーションであり、ローダーはdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions
メソッドでその上にログインビューを持っています。これは私がやったこと:他のビューでタスクが終了するのを待つ
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
// Override point for customization after application launch.
authView = [[AuthViewController alloc] init];
// Add the tab bar controller's view to the window and display.
[window addSubview:tabBarController.view];
[UIView beginAnimations:@"curldown" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:authView.view cache:YES];
[window addSubview:authView.view];
[UIView commitAnimations];
[window makeKeyAndVisible];
return YES;
[authView release];
}
私がしたいのは、このログインビューが削除されるまで待機する最初のコントローラです。詳細については、これはどのように私はauthViewControllerでauthViewを削除:
[UIView beginAnimations:@"curlup" context:nil];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:1];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view.superview cache:YES];
[self.view removeFromSuperview];
[UIView commitAnimations];
こんにちは、NSNotificationを使用してどのように達成できますか?私は自分自身を試しましたが、成功することはできませんでした:( –
それを並べ替え、ありがとう。:) –