iphone - 设置控件后面的 iOS 白色背景

标签 iphone objective-c ios uitableview interface-builder

有没有什么控件可以达到这张图的效果?

它看起来像一些特殊的单圆角表格单元格,其中嵌入了 UISlider。

我想知道的是它真的是一个表格单元格,这样做似乎有点过分了。 iOS 中是否有可能在不使用 UIimage 作为背景的情况下实现这一目标。

谢谢, -代码

enter image description here

最佳答案

看起来像 grouped table view section有一个观点。那custom table view cell在分组 TableView 部分看起来有一个 UISlider,它的两边都有一个 UILabel。

作为一般规则,您应该始终倾向于使用标准的内置控件,除非您确实需要自定义外观。

在这里查看第三张图片:http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/tableview_iphone/AboutTableViewsiPhone/AboutTableViewsiPhone.html

还有: http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/tableview_iphone/TableViewStyles/TableViewCharacteristics.html

来自该链接:

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/

相关文章:

ios - 它是 pushViewController 的错误吗

iPhone 键盘、完成按钮和 resignFirstResponder

ios - 如何在iOS APP中登录推特?

ios - 应用程序从后台重新出现后动画将不起作用

objective-c - 如何将 View 的框架转置到它的 super View 中?

iphone - UIWebView 在 iOS9 上不显示图像,SafariViewController 根本不加载 HTML 文件?

iphone - iOS 4.2 中未调用 viewWillAppear 方法

objective-c - iOS 核心图形 : Draw ONLY shadows of a CGPath

iphone - 我想使用像 UIBezierPath 这样的任何关闭路径来裁剪图像。可以在 iPhone 应用程序中使用吗?

ios - node-apn 库中出现奇怪的语法错误