0
我有下面的代碼,但不顯示UINavigationBar的不能得出UINavigationBar的
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self.navigationController setDelegate:self];
FeedsController *feedsController = [[[FeedsController alloc] init] autorelease];
self.window.rootViewController = feedsController;
self.reload = 1;
#if !TARGET_IPHONE_SIMULATOR
[application registerForRemoteNotificationTypes:
UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound];
#endif
application.applicationIconBadgeNumber = 0;
//self.textView.text = [launchOptions description];
[_window addSubview:navigationController.view];
//[_window setRootViewController:feedsController];
[self.window makeKeyAndVisible];
return YES;
}
誰可以幫我?
這是一個基於導航的應用程序或基於窗口或視圖的應用程序嗎? – Ishu
我沒有看到你在任何地方初始化'navigationController'?這可能是零。 – Pripyat