重複の可能性:
ビューがウィンドウ階層にない
コードに問題があります。
別のView Controllerに行きたいので、ここに私のコードがあります:
- (void)reloadMyTB {
TestViewController *vc = [[TestViewController alloc] init];
UINavigationController *cntrol = [[UINavigationController alloc] initWithRootViewController:vc];
[self presentModalViewController:cntrol animated:NO];
[cntrol release];
}
しかし、それは機能せず、ログで次の行を読むことができます:
Warning: Attempt to present <UINavigationController: 0x133db4b0> on <ArticleViewController: 0x13828330> whose view is not in the window hierarchy!
ありがとう!