美文网首页
xib添加footView

xib添加footView

作者: 萧城x | 来源:发表于2016-05-30 16:02 被阅读33次

在xib里,拖一个UIView到UITableView中作为tableHeaderView:

1.先拖一个新的UIView与File's Owner(通常是Controller)的view并列关系,注意是并列关系,不是subView关系。

2.把刚刚新的UIView的Simulated Metrics的Size设置成Freeform。

3.把该UIView拖入UITableView,然后该UIView会自动作为UITableView的tableHeaderView或tableFooterView。

相关文章

网友评论

      本文标题:xib添加footView

      本文链接:https://www.haomeiwen.com/subject/nuqcdttx.html