UI Nib dont load/show - white screen
Hi,
I have one simple project with navigation control that has one menu (buttons) that load different nibs with UIViewController <UIScrollViewDelegate>:
1 - letter_IssueAppDelegate has the root UInavigationController
2 - letter_IssueAppDelegate loads the letter_IssueViewController
3 - letter_IssueViewController, on the nib file, have serveral buttons that will load differents ViewController/Nibs files
4 - In the letter_IssueViewController, when user press one menu button will load one UIViewController that have UIScrollViewDelegate.
Details:
1/2 -letter_IssueAppDelegate : NSObject <UIApplicationDelegate>
[self.window addSubview:navigationController.view];
3 -letter_IssueViewController : UIViewController
-(IBAction)show {
IssuePlusViewController *nextView = [[IssuePlusViewController alloc] initWithNibName:@"IssuePlusViewController" bundle:nil];
[self.navigationController pushViewController:nextView animated:YES];
[nextView release];
}
4- IssuePlusViewController : UIViewController <UIScrollViewDelegate>
Problem:
All works ok except that when the users press one menu button (step 3), that will load one different nib file (UIViewController that have UIScrollViewDelegate), the controls and images of that nib don’t show. Its show one white screen.
The view controller class (IssuePlusViewController) is load because I change the title in the nav bar and the title name change.
I have tried calling the nibs in different ways :
-(IBAction)show {
IssuePlusViewController *nextView = [[IssuePlusViewController alloc] initWithNibName:@"IssuePlusViewController" bundle:nil];
[self.navigationController pushViewController:nextView animated:YES]; [nextView release];
OR
IssuePlusViewController *nextView = [[IssuePlusViewController alloc] init];
[self.navigationController pushViewController:nextView animated:YES];
[nextView release];
}
Nothing works. I always get one white screen with the navigation bar with the correct title. The controls I have in the NIB file not show up. For example, I have tested and put one UIimage background on the nib and the background control not show.
What is wrong ? Any tips ?
|