简体   繁体   English

表格视图控制器的标题视图上的滚动视图

[英]Scroll View on Header View of Table view controller

I am implementing a Table View with a short cut menu on header view of the tableview. 我正在用tableview的标题视图上的快捷菜单实现Table View。 the example i have is almost close to the screen shot below. 我拥有的示例几乎与下面的屏幕截图相似。

在此处输入图片说明

But i have implemented a simple header view on table view with menu, in this case the header view just have one set of menu and not scrollable vertically. 但是我已经在带有菜单的表视图上实现了一个简单的标题视图,在这种情况下,标题视图仅具有一组菜单并且不能垂直滚动。 but i would like to add the scrollable component so can accommodate more than just 8 icons. 但我想添加可滚动组件,以便可以容纳8个以上的图标。

here is a picture of what i have done 这是我所做的事情的图片

在此处输入图片说明

Any help advice will be great ! 任何帮助建议都会很棒! if some examples will be greatly appreciated. 如果有一些例子将不胜感激。

只需将UICollectionView放在tableViewHeader中即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM