2012-06-25 51 views
-1

在使用SSO登錄Facebook之後,presentModalViewController不調用任何方法。presentModalViewController不調用任何方法

SignInViewController *signView=[[SignInViewController alloc]init]; 
signView.delegate=self; 
[self.navigationController presentModalViewController:signView animated:YES]; 
[signView release]; 
- (void)cancelAction 
{ 
     [self dismissModalViewControllerAnimated:YES]; 
} 

的cancelAction方法調用,但沒有被駁回..

請幫助我。

+0

當你調用cancelAction? –

回答

-1
SignInViewController *signView=[[SignInViewController alloc]init]; 

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:signView]; 

[signView release]; 

[self presentModalViewController:navigationController animated:YES]; 

[navigationController release]; 

-(void)cancelAction 
{ 

     [self dismissModalViewControllerAnimated:YES]; 
} 

嘗試實現這個...

希望這會爲你工作..

相關問題