简体   繁体   English

如何实现可在背景上滚动的UITableView

[英]How do I implement a UITableView that can scroll over a background

I'm trying to implement a tableview where the tableview cells can scroll over a background similar to the way the facebook Poke app works. 我正在尝试实现一个tableview,其中tableview单元格可以在背景上滚动,类似于facebook Poke应用程序的工作方式。 Are they using a custom uitableview or implementing the interface with a uicollectionview? 他们是使用自定义uitableview还是使用uicollectionview实现接口?

Create an UIImageView with your background image. 用您的背景图像创建一个UIImageView Then set the table view's backgroundView property to the image view. 然后将表视图的backgroundView属性设置为图像视图。 This approach works well with a plain style table. 这种方法适用于纯样式表。

您可以为表格视图和单元格提供清晰的背景色(以IB或代码形式),并为窗口提供背景色-如果要在背景中显示图像,可以使用colorWithPatternImage:。

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

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