I have 3 viewcontrollers the second one is added to the first using
viewcontroller1.m :
[self presentModalViewController:vc2 animated:YES];
vc2.view.superview.frame = CGRectMake(50, 740, 695, 245);
now I want to navigate from the second to my third viewcontroller , I used in my viewcontroller2.m :
[self.navigationController pushViewController:vc3 animated:YES];
but didn't work. This is what I want to do : viewcontroller1-->viewcontroller2(navigate and pass an object to viewcontroller3)-->viewcontroller3