我正试着用UINavigationController来推送一个UIViewController。它在4.0之前的任何SDK中都能完美地工作,但在4.0中就不能工作了。
我收到OBJC_MSG_SEND (EXC_BAD_ACCESS)错误。UIViewController不是空的,self.navigationController也不是。
我试过NSZombieEnabled,但什么也没有显示。
UINavigationController作为控制器的视图之一在UITabBarController下运行。这一切都是在MainWindows.xib中设置的。
有什么不对劲的想法吗?快把我逼疯了。
发布于 2011-01-18 03:33:07
UIViewController *myViewController = [[UIViewController alloc] init];
[self.navigationController pushViewController:myViewController animated:YES];希望这能起作用!
https://stackoverflow.com/questions/3044347
复制相似问题