如何停止滚动UITableView的标题 [英] How to stop scrolling of header of UITableView

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

问题描述

我可以从滚动中停止表头视图吗?

Can I stop table header view from scrolling?

推荐答案

表头视图附加到表,内容视图的表的内部滚动视图。你不能阻止它滚动。

The table header view is attached to the table and is within the content view of the table's internal scroll view. You can't stop it from scrolling.

您可以通过将表格视图稍微降低一些,并将视图放在上面作为兄弟而不是孩子来获得效果。

You may be able to get the effect by making your table view slightly less tall and placing a view above it as a sibling rather than a child.

这需要你将控制器实现为UIViewController而不是UITableViewController,因此view属性不是表本身。

This will require you to implement the controller as a UIViewController rather than a UITableViewController though so that the view property isn't the table itself.

这篇关于如何停止滚动UITableView的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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