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?
Put A and B into one
UIScrollView
中,并设置pagingEnabled = YES
,通过改变UIScrollView
的contentOffset.x
to display A or B.View: UIView+calendar view+tab+scrollview Function: pageControl effect+click to modify contentOffset animation effect