2

Is it possible to set a custom size for the UINavigationController view? I need to embed a hierarical list into a view and I don't want the UINavigationController to be fullscreen.

Other solutions?

Thanks in advance.

user758977
  • 431
  • 1
  • 7
  • 19

1 Answers1

0

You can create a UINavigationController and then position its view as a subview of something else. For instance:

UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:root];

UIView * somethingElse = [self getSomethingElse];
[somethingElse addSubView:nav.view];
[nav setBounds:theBoundsWeWant];
[nav setFrame:theFrameWeWant];

The bounds and the frame properties will determine where the nav is shown on screen.

George
  • 1,457
  • 11
  • 26