zoukankan      html  css  js  c++  java
  • 在xib里,拖一个UIView到UITableView中作为tableHeaderView

    原贴地址:http://blog.csdn.net/haoxinqingb/article/details/41683881

    内容

    在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。

  • 相关阅读:
    android 学习
    android 学习
    android 学习
    android 学习
    android 学习
    android 学习
    android 学习
    android 学习
    android 学习
    每日日报
  • 原文地址:https://www.cnblogs.com/songxing10000/p/4519721.html
Copyright © 2011-2022 走看看