我在使用和tableView
推送到详细视图 时遇到了一些困难。self.navigationController
pushViewController
我已经确定我的问题来自我的 appdelegate.m 文件。我的应用程序首先加载一个窗口,然后加载一个标签栏控制器。现在我正在尝试在我需要的页面上引入导航控制器。我正在尝试将两个不同的项目合并在一起。
任何帮助都会很棒!
- (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;
}