当表长于屏幕大小时,表导航器移出视图 [英] Table navigator moves out of view when the table longer than a screen size

查看:86
本文介绍了当表长于屏幕大小时,表导航器移出视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格视图,顶部有一个导航栏。问题是,当表格变满时,当我滚动表格时导航会消失。是否有任何方法可以修复它以使其不随桌子移动?

I have a table view that has a navigation bar at the top. The problem is that when the table becomes full the navigation disappears when I scroll through the table. Is there any way of fixing it so that it does not move with the table?

非常感谢

推荐答案

您已将NavigationBar添加到UITableViews标题视图...

You have added the NavigationBar to your UITableViews Header View...

解决问题的最简单方法是转到XCode Designer ,你已经添加了UITableView和UINavigationBar ....

The easiest way to solve your problem is, go to XCode Designer, where you have added the UITableView, and the UINavigationBar....

剪切或删除NavigationBar

Cut or delete the NavigationBar

移动TableView时拖放一点点

Move the TableView with drag and drop a little bit lower

插入或直接将一个NavigationBar添加到View中,而不是在TableView中,然后将TableView移到更高的位置,直到它适合您的NavBar。同时调整你的TableView大小,以适应屏幕...

Insert, or add a NavigationBar directly to the View, not in the TableView, then move the TableView higher, untill it fits under your NavBar. Also resize your TableView, to fit the Screen now...

此后,当滚动你的TableView时,NavBar不会移动

After this the NavBar wont move while scrolling your TableView

这篇关于当表长于屏幕大小时,表导航器移出视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆