i have a modal view,on that i placed a button By clicking on that button.,i should navigate to another view
I have tried many times but not getting push-view in modal view,
i am a beginner in iOS,please don't discourage me
i have a modal view,on that i placed a button By clicking on that button.,i should navigate to another view
I have tried many times but not getting push-view in modal view,
i am a beginner in iOS,please don't discourage me
This is the code.....
-(IBAction)post:(id)sender{
PhotoDetailViewController *addController = [[PhotoDetailViewController alloc] initWithNibName:@"PhotoDetailViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:addController];
[self presentModalViewController:navigationController animated:YES];
}
"post" is button on the present modalview,when i click that..it should be navigated to PhotoDetailController,How to do that
NB: posting from my friend's account......Jishil KP
@Jishil KP, Push is not a property of modal view,which can only be presented or dismiss. If u wanta push effect,then use navigationcontroller.