【问题标题】:Add UIView to UITableView's header not in section's header将 UIView 添加到 UITableView 标题而不是部分标题
【发布时间】:2015-02-18 08:19:46
【问题描述】:

我正在使用UITableView,其中包含两个部分(颜色和动物) 但我想在 tableview 的标题中添加两个 UIButtons,而不是在 UITableView 的部分标题中

你能帮帮我吗:) 谢谢

【问题讨论】:

标签: ios objective-c iphone uitableview


【解决方案1】:

您只需将 UIView 拖放到您的 IB 中,然后将其导出并设置

yourtable.tableHeaderView = youroutletview; 

现在您可以根据需要自定义视图。

【讨论】:

    猜你喜欢
    • 2014-01-14
    • 1970-01-01
    • 2023-03-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多