tableView
とを使用して詳細ビューにプッシュするのに 問題がself.navigationController
ありpushViewController
ます。
問題はappdelegate.mファイルにあると判断しました。私のアプリは最初に単一のウィンドウをロードし、次にタブバーコントローラーをロードします。今、必要なページにナビゲーションコントローラーを紹介しようとしています。2つの異なるプロジェクトをマージしようとしています。
どんな助けでも素晴らしいでしょう!
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
PDCWelcomeViewController *welcomeVC = [[PDCWelcomeViewController alloc] initWithNibName:@"PDCWelcomeViewController" bundle:nil];
self.slideUpNav = [[PDCSlideUpNavController alloc] initWithRootViewController:welcomeVC];
self.slideUpNav.navigationBarHidden = isUserLoggedIn;
self.window.rootViewController = self.slideUpNav;
[self.window makeKeyAndVisible];
return YES;
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[ViewController alloc] init];
[self.viewController.view setBackgroundColor:[UIColor underPageBackgroundColor]];
UINavigationController *navControl = [[UINavigationController alloc] initWithRootViewController:self.viewController];
self.window.rootViewController = navControl;
[self.window makeKeyAndVisible];
return YES;
}