0

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!

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
adrian
  • 4,574
  • 17
  • 68
  • 119
  • [self.navigationController presentModalViewController:navigationController1.view animated:YES]; insted of assign your navigationController assign it`s view...as above..n check – AJPatel Oct 20 '11 at 10:18

1 Answers1

0

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];

Mobile App Dev
  • 1,824
  • 3
  • 20
  • 45