0

On clicking button below code is called, but my weeklyReviewViewController.xib is not loading but the application is logging out onto the initial view controller.

if(buttonIndex == 0){
    NSLog(@"0");
    [self.viewController initWithNibName:@"WeeklyReviewViewController" bundle:nil];
    navcnt = [[UINavigationController alloc] initWithRootViewController:self.viewController];
    NSLog(@"navigation controller %@",navcnt);
    notificationCounter = YES;
    self.window.rootViewController = navcnt;
}
4

1 回答 1

0

请检查 self.viewController 的类型是否与 WeeklyReviewViewController 的类型相同。

于 2012-10-31T08:05:30.607 回答