事情的方法是:我有带有触发像这样的IBAction为一个按钮modalViewController
:该驳回一个`modalViewController`并呈现另一
-(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
......这应该怎么办?
什么是''isModalViewControllerNeeded? – 2012-08-17 13:06:39
只是一个BOOL属性的例子。你可以自己做。 – Thermometer 2012-08-17 13:09:41