Я разрабатываю приложение, в котором пользователю необходимо сначала войти в систему.На самом деле это приложение 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];
}
Я хочу, чтобы контроллер First View ждал, пока это представление входа не будет удалено.Для получения более подробной информации, как я удалил authView в authViewController:
[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];