有没有什么控件可以达到这张图的效果?
它看起来像一些特殊的单圆角表格单元格,其中嵌入了 UISlider。
我想知道的是它真的是一个表格单元格,这样做似乎有点过分了。 iOS 中是否有可能在不使用 UIimage 作为背景的情况下实现这一目标。
谢谢, -代码
最佳答案
看起来像 grouped table view section有一个观点。那custom table view cell在分组 TableView 部分看起来有一个 UISlider,它的两边都有一个 UILabel。
作为一般规则,您应该始终倾向于使用标准的内置控件,除非您确实需要自定义外观。
来自该链接:
Grouped Table Views
A grouped table view also displays a list of information, but it groups related rows in visually distinct sections. As shown in Figure 1-4, each section has rounded corners and by default appears against a bluish-gray background. Each section may have text or an image for its header or footer to provide some context or summary for the section. A grouped table works especially well for displaying the most detailed information in a data hierarchy. It allows you to separate details into conceptual groups and provide contextual information to help users understand it quickly.
关于iphone - 设置控件后面的 iOS 白色背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12663917/