我正在開發一個應用程序,用戶需要先登錄。它實際上是一個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?我嘗試過自己,但無法取得成功。 :( – 2010-12-21 06:20:02
排序出來,謝謝。:) – 2010-12-21 07:18:12