-1

在 presentModalViewController 中,使用 SSO 登录 Facebook 后不调用任何方法。

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

cancelAction 方法正在调用但未关闭..

请帮我。

4

1 回答 1

-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];
}

尝试实现这个...

希望这对你有用..

于 2012-06-25T14:16:48.383 回答