[英]iOS How fix button at the bottom UITableView Swift 4
不要將它添加到 tableview。 將它放在 tableview 下,並將其底部固定到 viewcontroller 的視圖,將按鈕的頂部固定到 tableview 的底部
首先,將該按鈕放在底部。 確保將該按鈕放置在視圖層次結構中UITableView
上一層,並像這樣設置 contentInset,
self.tbl.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 'your button height', right: 0)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.