Ios UINavigationController大小
是否可以为UINavigationController视图设置自定义大小? 我需要在视图中嵌入一个层次列表,我不希望UINavigationController是全屏的 其他解决方案Ios UINavigationController大小,ios,uinavigationcontroller,Ios,Uinavigationcontroller,是否可以为UINavigationController视图设置自定义大小? 我需要在视图中嵌入一个层次列表,我不希望UINavigationController是全屏的 其他解决方案 提前感谢。您可以创建UINavigationController,然后将其视图定位为其他视图的子视图。例如: UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:root]; UIVie
提前感谢。您可以创建UINavigationController,然后将其视图定位为其他视图的子视图。例如:
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:root];
UIView * somethingElse = [self getSomethingElse];
[somethingElse addSubView:nav.view];
[nav setBounds:theBoundsWeWant];
[nav setFrame:theFrameWeWant];
bounds
和frame
属性将确定导航在屏幕上的显示位置。您可以创建UINavigationController,然后将其视图定位为其他视图的子视图。例如:
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:root];
UIView * somethingElse = [self getSomethingElse];
[somethingElse addSubView:nav.view];
[nav setBounds:theBoundsWeWant];
[nav setFrame:theFrameWeWant];
bounds
和frame
属性将确定导航显示在屏幕上的位置。可能的重复