search

Home  >  Q&A  >  body text

swift - iOS这种界面功能如何实现?

半糖app首页

  1. 大概如何布局?

  2. 页面向上滚动的时候,上面的滚动图缓慢向上隐藏,直到滚动到导航的位置的时候,页面不滚动,tableview继续向上滚动。

  3. 页面向下滚动的时候,轮播图上面出现下拉刷新,而不是tableview上面出现下拉刷新

阿神阿神2767 days ago334

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 17:59:39

    Determine whether to display based on the scrolling position, or write a category yourself and redefine the tableview to control the head of each group, etc.

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:59:39

    I also want to know how to do it

    reply
    0
  • 阿神

    阿神2017-04-17 17:59:39

    A detailed analysis of this interface.
    The main frame is a UITableViewController,
    The top is a picture carousel, and below the carousel is a UIView navigation bar to store the button group.
    The bottom is Cell, needless to say.
    Specific implementation
    Create a Base controller. Inherit UITableView.
    Load Cell in the controller.
    Then add tableView to tableHeaderView, and add a picture carousel and navigation bar to tableHeaderView.
    Then customize the sub-controller. Inherit Base control controller. Load different TableViews.
    Just add the View of the sub-controller in the Base controller.
    Re-optimization:
    Add sliding gestures, and then modify the corresponding navigation bar after the sliding is completed

    reply
    0
  • Cancelreply