首页个播刷新逻辑

This commit is contained in:
chenguilong
2022-07-21 19:19:17 +08:00
parent dc1c058f48
commit 7de25bfc9e
7 changed files with 36 additions and 19 deletions

View File

@@ -49,7 +49,6 @@
- (void)viewDidLoad {
[super viewDidLoad];
[self headerRefresh];
[self initSubViews];
[self initSubViewConstraints];
}
@@ -60,6 +59,12 @@
[self.view addSubview:self.collectionView];
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self headerRefresh];
}
- (void)initSubViewConstraints {
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.mas_equalTo(self.view);
@@ -165,7 +170,7 @@
- (void)setTabId:(NSString *)tabId {
_tabId = tabId;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self headerRefresh];
// [self headerRefresh];
});
}