search

Home  >  Q&A  >  body text

ios - Horizontal sliding issue with view on top

The problem is this:
1. There is a calendar control at the top, a tab below the calendar control, and the corresponding content below the tab.
2. The calendar control is not fixed, which means it can slide with the view below;
3. A and B below not only support clicking on the tab tab to switch, but also sliding left and right to switch.

Here comes the question:
Are there any good ideas that you can provide?

伊谢尔伦伊谢尔伦2780 days ago811

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-17 10:07:06

    Put A and B into one UIScrollView中,并设置pagingEnabled = YES,通过改变UIScrollViewcontentOffset.x to display A or B.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-17 10:07:06

    View: UIView+calendar view+tab+scrollview Function: pageControl effect+click to modify contentOffset animation effect

    reply
    0
  • Cancelreply