Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试实现一个表格视图,其中表格视图单元格可以在类似于 facebook Poke 应用程序的工作方式的背景上滚动。他们是使用自定义的 uitableview 还是使用 uicollectionview 实现接口?
UIImageView使用您的背景图像创建一个。然后将表格视图的backgroundView属性设置为图像视图。这种方法适用于普通样式表。
UIImageView
backgroundView
您可以为表格视图和单元格提供清晰的背景颜色(在 IB 或代码中),并为窗口提供背景颜色——如果您想要背景中的图像,您可以使用 colorWithPatternImage:。