UITableView在导航栏下滚动 [英] UITableView scrolling under the navigation bar

查看:73
本文介绍了UITableView在导航栏下滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表视图设置,当前,当它被闪烁,它的部分冲刷在状态栏下面,而不是刷新对导航栏。我不确定这是否是正确的行为,但是大多数应用程序在导航栏滑动到视图下方时,部分标题会正常刷新。



什么是正确的方式



与我在中创建的线程相关联,具有奇怪删除线的破碎单元格? a>。当我将导航栏设置为半透明黑色时,会出现此问题加上单元穿透问题。当它是黑色不透明或正常,这样的问题不存在。我不知道这是否是我的代码中的其他结果或SDK的问题。

解决方案

听起来像你或者没有在IB中正确设置边界,或者你的弹簧和支柱不正确。这是UIViewController的顶层还是子视图?你使用UINavigationController吗?如果你在IB测试接口,它看起来好吗?


I have a table view setup which currently, when being flickered up, has its sections flush up against right underneath the status bar, instead of flushing against the the navigation bar. I'm not sure if this is the proper behavior, but most applications have the Section Title flush properly below the navigation bar when it's slid into view.

What's the right way to correct this instead of downsizing the tableView arbitrarily?

* EDIT *

Related to a thread I created in Broken cell with an odd strikethrough?. This problem plus the 'cell strike-through' problem occurs when I set my Navigation Bar to a Translucent Black. When it's Black Opaque or Normal, such a problem does not exist. I'm not sure if that's a result of something else in my code or an issue with the SDK.

解决方案

Sounds like you either don't have the bounds set properly in IB, or your springs-and-struts aren't correct. Is this the top level of the UIViewController, or a subview? Are you using a UINavigationController? If you test the interface in IB, does it look okay?

这篇关于UITableView在导航栏下滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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