我正在开发iOS 6应用。 我的应用程序有一个标准的导航控制器,嵌入了CustomViewController。 在这个控制器中,我像这样创建一个模态视图:
-(IBAction)presentModalList:(id)sender {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
StationsListViewController *list = [storyboard instantiateViewControllerWithIdentifier:@"StationsListViewController"];
[list setStationsData: [self.stationsData allValues]];
[self presentModalViewController:list animated:YES];
}
模态控制器显示得很好,但是解除控制器时会产生警告。 在该控制器中的解除方法如下:
-(IBAction)backToMap
{
[self dismissModalViewControllerAnimated:YES];
}
生成的警告是:Warning:
试图在进行呈现或解散操作时从视图控制器 < UINavigationController: 0x1ed91620 > 中解雇!
有什么线索吗?
谢谢