Quote:
Originally Posted by jimmy
-(IBAction)clickMe  id)sender{
[self.navigationController presentModalViewController:fineViewController animated:YES];
}
//is this syntax correct.i dont see error but still i dont see change in view.Thanks for the response.
|
(IBAction)clickMe

id)sender{
if(nextViewControllerObject == nil)
{
nextViewControllerObject = [[NextViewController alloc] initWithNibName:@"NextViewController" bundle:nil];
}
if(addNavigationController == nil)
addNavigationController = [[UINavigationController alloc] initWithRootViewController:nextViewControllerObjec t];
[self.navigationController presentModalViewController:addNavigationController animated:YES];
}
here addNavigationController declared in .h file as UINavigationController Class object
Regards
Dhanunjaya