问题是:我有modalViewController
一个按钮可以触发 IBAction,如下所示:
-(IBAction)myMethod
{
[self dismissModalViewControllerAnimated:YES];
if([delegate respondsToSelector:@selector(presentOtherModalView)])
{
[delegate presentOtherModalView];
}
}
在作为委托的根视图中,modalViewController
我已经实现了presentOtherModalView
委托方法,它看起来像这样:
-(void)presentOtherModalView
{
AnotherViewController *viewInstance = [[AnotherViewController alloc]initWithNibName:@"AnotherViewController" bundle:nil];
viewInstance.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:viewInstance animated:YES];
[viewInstance release];
}
问题是第二个modalViewController
没有被呈现。它给了我信息wait_fences: failed to receive reply: 10004003
......应该怎么做?