ios - How can i present/dismiss viewcontroller from bottom to top in navigationcontroller? -


i want show animation bottom top when pushing viewcontroller navigationcontroller?do have idea it?

registerviewcontroller *registerview = (registerviewcontroller *)[self.storyboard instantiateviewcontrollerwithidentifier:@"registerviewcontroller"]; 

present

[self presentviewcontroller:registerview animated:yes completion:nil]; 

dismiss

[self dismissviewcontrolleranimated:yes completion:nil]; 

is there way achieve in navigationcontroller?

don't link storyboard

present viewcontroller code

it present bottom top

uiviewcontroller *vc;     vc = [self.storyboard instantiateviewcontrollerwithidentifier:@"vc1"];     [self.navigationcontroller presentviewcontroller:vc animated:yes completion:nil]; 

dismiss viewcontroller code

it dismiss top bottom

[self dismissviewcontrolleranimated:yes completion:nil]; 

enter image description here


Comments