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

如何在 Storyboard 中向 UITableView 添加頁腳

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

問題描述

限時送ChatGPT賬號..

我是 iOS 開發(fā)的新手.

I'm fairly new to iOS development.

我想在 UITableViewController 的表格視圖中添加頁腳.我已經(jīng)在 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 中創(chuàng)建了頁腳視圖,將其作為頁腳添加到表格視圖的最佳實踐方法是什么?

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的底部區(qū)域.您將在層次結(jié)構(gòu)中看到它將是 tableview 的子視圖.然后您可以將子視圖(例如標(biāo)簽和按鈕)拖到那里,調(diào)整高度等.

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.

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

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

相關(guān)文檔推薦

Using Instruments to test an iOS app without having source code to the application(在沒有應(yīng)用程序源代碼的情況下使用 Instruments 測試 iOS 應(yīng)用程序)
KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應(yīng)用程序以找出罕見 UI 錯誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標(biāo)成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態(tài)和動態(tài)單元格中處理單元格選擇)
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 消失了)
主站蜘蛛池模板: 欧美久久天堂 | 欧美日韩淫片 | 日日干日日 | 中文二区 | 日韩高清电影 | 天天草天天干 | 精品视频在线观看 | 91免费视频 | 一二三四在线视频观看社区 | 国外激情av| 在线国产精品一区 | 超碰伊人 | 国产专区在线 | 岛国在线免费观看 | 一区二区av | 欧美日韩在线一区 | av一区二区三区四区 | 成人毛片视频免费 | 欧州一区 | 亚洲欧美一区二区三区视频 | 天天玩天天干天天操 | 色网站入口 | 久久成人国产精品 | 九九色综合 | 丝袜天堂| 久久最新精品视频 | 欧美一区二区三区久久精品 | 四虎永久在线精品免费一区二 | 国产日韩视频在线 | 精品久久久久久亚洲精品 | 欧美一级黄色片免费观看 | av午夜电影| 成人福利网| 亚洲精品一区中文字幕乱码 | 欧美涩 | 日韩色视频 | 羞羞的视频免费看 | 欧美久久久久久 | 成人免费精品视频 | 欧美理论 | 国产精品成人一区二区三区 |