Explorar o código

pageView刷新问题

Steven hai 7 meses
pai
achega
16984bbfa4

+ 2 - 1
KulexiuForStudent/KulexiuForStudent/Module/Course/AccompanyCourse/Controller/AccompanyCourseGroupViewController.m

@@ -90,7 +90,7 @@
     [self refreshListPage];
     self.topViewHeight = [ProgramCourseInfoView getViewHeightWithPlanString:self.detailModel.coursePlan];
     [self.infoView configWithSource:self.detailModel];
-    [self.pagerView reloadData];
+    [self.pagerView resizeTableHeaderViewHeightWithAnimatable:NO duration:0.3f curve:UIViewAnimationCurveEaseInOut];
 }
 
 - (void)configCategoryView:(NSInteger)topHeight {
@@ -171,6 +171,7 @@
 }
 
 - (id<JXPagerViewListViewDelegate>)pagerView:(JXPagerView *)pagerView initListAtIndex:(NSInteger)index {
+    
     ProgramCourseGroupBodyView *listView = [[ProgramCourseGroupBodyView alloc] init];
     listView.naviController = self.navigationController;
     listView.selectIndex = index;

+ 2 - 1
KulexiuForStudent/KulexiuForStudent/Module/Course/MusicRoom/Controller/MusicRoomGroupViewController.m

@@ -90,7 +90,7 @@
     [self refreshListPage];
     self.topViewHeight = [MusicRoomGroupHeadView getViewHeightWithPlanString:self.detailModel.coursePlan];
     [self.infoView configWithSource:self.detailModel];
-    [self.pagerView reloadData];
+    [self.pagerView resizeTableHeaderViewHeightWithAnimatable:NO duration:0.3f curve:UIViewAnimationCurveEaseInOut];
 }
 
 - (void)configCategoryView:(NSInteger)topHeight {
@@ -171,6 +171,7 @@
 }
 
 - (id<JXPagerViewListViewDelegate>)pagerView:(JXPagerView *)pagerView initListAtIndex:(NSInteger)index {
+    
     ProgramCourseGroupBodyView *listView = [[ProgramCourseGroupBodyView alloc] init];
     listView.naviController = self.navigationController;
     listView.selectIndex = index;

+ 2 - 1
KulexiuForStudent/KulexiuForStudent/Module/Course/VipCourse/Controller/VIPCourseGroupViewController.m

@@ -92,7 +92,7 @@
     [self refreshListPage];
     self.topViewHeight = [ProgramCourseInfoView getViewHeightWithPlanString:self.detailModel.coursePlan];
     [self.infoView configWithSource:self.detailModel];
-    [self.pagerView reloadData];
+    [self.pagerView resizeTableHeaderViewHeightWithAnimatable:NO duration:0.3f curve:UIViewAnimationCurveEaseInOut];
 }
 
 - (void)configCategoryView:(NSInteger)topHeight {
@@ -171,6 +171,7 @@
 }
 
 - (id<JXPagerViewListViewDelegate>)pagerView:(JXPagerView *)pagerView initListAtIndex:(NSInteger)index {
+    
     ProgramCourseGroupBodyView *listView = [[ProgramCourseGroupBodyView alloc] init];
     listView.naviController = self.navigationController;
     listView.selectIndex = index;

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Module/Home/Controller/HomeViewController.m

@@ -286,7 +286,7 @@
 //    CGFloat bottomSpace = 20.0f;
     CGFloat bottomSpace = 0.0f;
     self.headViewHeight = self.bannerViewHeight + self.buttonViewHeight + self.noticeViewHeight + self.courseViewHeight + self.talentViewHeight + self.liveViewHeight + self.videoViewHeight + bottomSpace;
-    [self.pagerView reloadData];
+    [self.pagerView resizeTableHeaderViewHeightWithAnimatable:NO duration:0.3f curve:UIViewAnimationCurveEaseInOut];
 }
 
 - (void)configUI {

+ 1 - 0
KulexiuForStudent/KulexiuForStudent/Module/Mine/MineCourse/Controller/MyCourseViewController.m

@@ -84,6 +84,7 @@
     self.categoryView.titleSelectedColor = HexRGB(0x333333);
     self.categoryView.titleColor = HexRGB(0x666666);
     self.categoryView.titleColorGradientEnabled = YES;
+    self.categoryView.cellSpacing = 10.0f;
     
     JXCategoryIndicatorLineView *lineView = [[JXCategoryIndicatorLineView alloc] init];
     lineView.indicatorHeight = 4.0f;