iPhone:将UINavigationBar锚定到屏幕底部

Nic*_*ard 1 iphone view uinavigationbar uitableview

我正在创建一个工作正常的UINavigationBar.但是,它滚动我的UITableView,我不想要.如何将导航栏锚定在屏幕底部,以便它不滚动?

    bottomNav = [[UINavigationBar alloc] initWithFrame:CGRectMake(0.0, self.view.frame.size.height, self.view.frame.size.width, 44.0)];
    bottomNav.barStyle = UIBarStyleBlackOpaque;
    [self.view addSubview:bottomNav];
Run Code Online (Sandbox Code Playgroud)

Tec*_*Zen 5

这听起来像是将它添加到tableview而不是包含tableview的视图.如果self是tableview控制器肯定是你的问题.