ios - iOS - 大标题隐藏了我的身体顶部
问题描述
我的导航栏有一些问题。实际上,这是一个很大的标题,它覆盖了我的ViewController
. 我认为视频将帮助您理解问题:https ://vimeo.com/284493905
解决方案
当您推送到新的视图控制器时,像这样滚动到顶部:
yourTableView.setContentOffset(.zero, animated: true)
或者
let indexPath = IndexPath(row: 0, section: 0)
yourTableView.scrollToRow(at: indexPath, at: .bottom, animated: animated)
推荐阅读
- javascript - 如何在 react-native 中测量数据使用情况(互联网)
- python - 迭代列表以增加“x”并创建新列表
- r - 具有 formattable (或任何其他包)的列中每隔一行的条件颜色格式
- javascript - 在嵌套的 HTML 元素中用括号替换双引号
- django - Django视图需要一个不在表单上的项目
- azure - 有没有办法通过 API 验证 AZURE 权限级别
- javascript - 如何将节点中的数组中的数据传输到我的 html 表中?
- java - 将 HTML 转换为图像(通过自动调整大小的 JEditorPane)
- android - JSON 阅读器预期名称,但为字符串
- c# - 切换 MenuItem 对 GridControl 的 SelectedItem 的可见性