I am new to iPhone Developer.
i want to do navigate to new page with animation but i am unable to navigate to new page,
Here is my code snippet,
UIButton *Planbtn = (UIButton *)[self.view viewWithTag:1];
[Planbtn addTarget:self action:@selector(btnClicked) forControlEvents:UIControlEventTouchUpInside];
..
-(void)btnClicked{
NSLog(@"btnClicked");
PlanPage *yourViewController = [[PlanPage alloc] initWithNibName:@"PlanPage" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:yourViewController animated:TRUE];
[yourViewController release];
}
i am able to see btnClicked in my Log.
Thanks in Advance !
Write these properties in
AppDelegate.hfileWrite this code in
AppDelegate.mfileI think it will be helpful to you.