فهرست منبع

pageView reload data刷新问题

Steven 8 ماه پیش
والد
کامیت
b11882a4c1

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

@@ -101,7 +101,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 {
@@ -182,6 +182,7 @@
 }
 
 - (id<JXPagerViewListViewDelegate>)pagerView:(JXPagerView *)pagerView initListAtIndex:(NSInteger)index {
+    
     ProgramCourseGroupBodyView *listView = [[ProgramCourseGroupBodyView alloc] init];
     listView.naviController = self.navigationController;
     listView.selectIndex = index;

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

@@ -103,7 +103,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 {
@@ -209,7 +209,6 @@
         [listView beginFirstRefresh];
         return listView;
     }
-    
 }
 
 - (void)pagerView:(JXPagerView *)pagerView mainTableViewDidScroll:(UIScrollView *)scrollView {

+ 2 - 2
KulexiuForTeacher/KulexiuForTeacher/Module/Course/VIPCourse/Controller/VIPCourseGroupViewController.m

@@ -103,7 +103,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 {
@@ -122,7 +122,6 @@
     self.pagerView.backgroundColor = [UIColor clearColor];
     self.pagerView.mainTableView.backgroundColor = [UIColor clearColor];
     self.pagerView.listContainerView.backgroundColor = [UIColor clearColor];
-//    self.pagerView.mainTableView.gestureDelegate = self;
     self.categoryView.listContainer = (id<JXCategoryViewListContainer>)self.pagerView.listContainerView;
     self.pagerView.listContainerView.listCellBackgroundColor = [UIColor clearColor];
     [self.view addSubview:self.pagerView];
@@ -182,6 +181,7 @@
 }
 
 - (id<JXPagerViewListViewDelegate>)pagerView:(JXPagerView *)pagerView initListAtIndex:(NSInteger)index {
+    
     ProgramCourseGroupBodyView *listView = [[ProgramCourseGroupBodyView alloc] init];
     listView.naviController = self.navigationController;
     listView.selectIndex = index;

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/MyCourse/Controller/MyCourseViewController.m

@@ -77,7 +77,6 @@
 
 - (void)configCategoryView:(NSInteger)topHeight {
     
-    
     _categoryView = [[JXCategoryTitleView alloc] initWithFrame:CGRectMake(0, topHeight, KPortraitWidth, HEADER_HEIGHT)];
     self.categoryView.titles = self.titles;
     self.categoryView.delegate = self;
@@ -86,6 +85,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;

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/Controller/MinePageViewController.m

@@ -139,7 +139,7 @@
     // 刷新老师认证和音乐人认证状态
     [self refreshAuthStatus];
     [self.headView.bgView sd_setImageWithURL:[NSURL URLWithString:[self.teacherInfo.heardUrl getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:TEACHER_AVATAR]];
-    [self.pagerView reloadData];
+    [self.pagerView resizeTableHeaderViewHeightWithAnimatable:NO duration:0.3f curve:UIViewAnimationCurveEaseInOut];
 }
 
 - (void)refreshAuthStatus {