![](/img/trans.png)
[英]Switching between UITableViewController and UIViewController with table view inside
[英]Adding left and right margins to a table view inside UITableViewController
我有一個UITableViewController子類,想向表視圖添加左右邊緣空白。 我在下面嘗試過,但這無濟於事。 我不想通過將tableview作為子視圖移動到UIView來更改視圖層次結構。
self.tableView.contentInset = UIEdgeInsetsMake(0.0, 20.0, 0.0, 20.0)
在這種情況下可以做什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.