事情的方法是:我有帶有觸發像這樣的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