久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在 Storyboard 中向 UITableView 添加頁腳

How to add a footer to a UITableView in Storyboard(如何在 Storyboard 中向 UITableView 添加頁腳)
本文介紹了如何在 Storyboard 中向 UITableView 添加頁腳的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我是 iOS 開發的新手.

I'm fairly new to iOS development.

我想在 UITableViewController 的表格視圖中添加頁腳.我已經在 Storyboard 中以圖形方式制作了要用作頁腳的視圖,但是我不知道如何將其作為頁腳連接到我的表格視圖.

I want to add a footer to the table view in a UITableViewController. I've made the view I want to use as the footer graphically in Storyboard, however I can't work out how to hook it up as the footer to my table view.

我可以通過分配 self.tableView.tableFooterView 以編程方式在 UITableViewControllerviewDidLoad 方法中添加頁腳.但是我在 Storyboard 中創建了頁腳視圖,將其作為頁腳添加到表格視圖的最佳實踐方法是什么?

I can add a footer programmatically in UITableViewController's viewDidLoad method by assigning self.tableView.tableFooterView. But I've created my footer view in Storyboard, what is the best practice way of adding it as the footer to my table view?

推薦答案

你可以只拖一個視圖到tableView的底部區域.您將在層次結構中看到它將是 tableview 的子視圖.然后您可以將子視圖(例如標簽和按鈕)拖到那里,調整高度等.

You can just drag a view to the bottom area of the tableView. You'll see in the hierarchy that it will be a subview of the tableview. You can then drag subviews such as labels and buttons there, adjust the height, etc.

這篇關于如何在 Storyboard 中向 UITableView 添加頁腳的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Using Instruments to test an iOS app without having source code to the application(在沒有應用程序源代碼的情況下使用 Instruments 測試 iOS 應用程序)
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應用程序以找出罕見 UI 錯誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態和動態單元格中處理單元格選擇)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中刪除 Safari 中的地址欄?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級到 Xcode 4.5 后,iOS 5 SDK 消失了)
主站蜘蛛池模板: 综合网在线| 涩涩999 | 97超碰资源站 | 日韩视频在线观看 | 久久久久久黄色 | 可以看毛片的网站 | 日韩福利一区 | 特级毛片爽www免费版 | 国产综合亚洲精品一区二 | 亚洲午夜视频在线观看 | 91一级片| 成人av一区二区三区在线观看 | 久久精品99国产国产精 | 在线中文字幕av | 日本a网站 | 一级中国毛片 | 天天操夜夜骑 | 日韩精品在线一区二区 | 欧美 日韩 国产 成人 在线 | www国产在线观看 | 不卡的av | 天天草天天干 | 毛片在线视频 | 国产在线小视频 | 国产一级一片免费播放放a 免费国产视频 | 亚洲久久久久久 | www四虎 | 岛国av免费观看 | 九九综合网 | 久久久久久艹 | 国产成人精 | 国产理论视频 | 亚洲免费视频一区 | 国产裸体永久免费视频网站 | 91中文在线 | 亚洲综合另类 | 欧美综合久久 | 一区二区三区免费看 | 色婷婷精品国产一区二区三区 | 免费成人深夜夜行网站 | 天天干天天干天天干 |