I have an iphone application which is having a UIWindow. I want to add more UIViews to that.
I tried this.
SettingsViewController *viewctrl = [[SettingsViewController alloc] initWithNibName:@"SettingsViewController" bundle:nil];
[self.navigationController pushViewController:viewctrl animated:YES];
[viewctrl release];
But it didnt worked. Anybody please help me. Thanks in advance.
You need to show more code.
self.navigationController is nil by default if you didn’t setup a navigation controller.