0
votes

I have a view(which inherits the navigationController property) but when I click an image inside this video I need to present a viewController modally.

Looking in here: Navigation View in Modal View I did this way:

*I created a new navigationController having as root the view that I need to present and presented modally my new navigationController**

moviePlayer = [[[CustomMoviePlayerViewController alloc] initWithPath:path1] autorelease];
navigationController1 = [[UINavigationController alloc] initWithRootViewController:moviePlayer];
[self.navigationController presentModalViewController:navigationController1 animated:YES];

Well here it is-This is how my screen looks like before presenting modally the new navigationController. enter image description here

then I do this:

[self.navigationController presentModalViewController:navigationController1 animated:YES];

an present my navigationController.

And when I dismiss the navigationController my screen looks like here: enter image description here

My header and footer dissappear.Any solution for this.Thank you!

1
[self.navigationController presentModalViewController:navigationController1.view animated:YES]; insted of assign your navigationController assign it`s view...as above..n checkAJPatel

1 Answers

0
votes

I have also same problem like this, what i done is, you can set modalview controller on tabbar contrller instead of navigation controller.

Edit
Instead of [self.navigationController presentModalViewController:navigationController1 animated:YES]; write [tabBarController presentModalViewController:viewController animated:YES];