ios - 将左右边距添加到 Grouped UITableView ios 8

标签 ios uitableview xcode6

我想为分组的 UITableView 添加左右边距,如 youtube 应用程序,请参见以下屏幕截图:
enter image description here

请大家给点建议!!
非常感谢,

最佳答案

将表格 View 作为 subview 放到另一个 View 中。这使您可以根据需要布置表格 View 的位置和大小。

关于ios - 将左右边距添加到 Grouped UITableView ios 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27147260/

相关文章:

ios - TableView单元格中的UITextField

swift - UITableView,尽管在 UIView 层次结构检查器中显示,但单元格中的图像未显示

ios - 如何子类化 UICollectionViewFlowLayout 以便可以覆盖 layoutAttributesForElementsInRect

ios - 使用函数将文本添加到 TextView

iphone - UIView 的 -drawRect 是否为 : have to be called on the main thread?

ios - 单元测试 UICollectionView.indexPath(: UICollectionViewCell)

ios - 在 iPhone App 中使用什么音频压缩算法?

ios - 如何在 Swift 的同一部分中显示 UITableView 中的特定行列表

git - 找不到 Alamofire 框架

ios - xcode 6 在编译最后一个源文件时保持静止