hello..everyone.... I am working on navigation based apps...i have shown first screen...in first there is a label,image,button and tab bar items...when we press a button ..it shows new screen..please tell me how to push a new screen
A:
please tell me how to push a new screen
Given that you are building a navigation-based app, the general pattern is:
- (void)showMyViewController
{
MyViewController* myViewController = [[MyViewController alloc] initWithNibName:@"MyView" bundle:nil];
[self.navigationController pushViewController:myViewController animated:YES];
[myViewController release];
}
Shaggy Frog
2010-09-21 05:34:23
-(void)buttonClicked:(id)sender{ secondViewcontroller=[[SecondViewController alloc]initWithNibName:@"secondViewController" bundle:[NSBundle mainBundle]]; [self.navigationController pushViewController:secondViewcontroller animated:YES]; } whenever i click on button it does nt show go to another view....n also button dose nt show any action..plzz help me out..
2010-09-21 08:28:40
A:
-(void)buttonClicked:(id)sender{ secondViewcontroller=[[SecondViewController alloc]initWithNibName:@"secondViewController" bundle:[NSBundle mainBundle]]; [self.navigationController pushViewController:secondViewcontroller animated:YES]; } whenever i click on button it does nt show go to another view....n also button dose nt show any action