首页的推荐已经完成

This commit is contained in:
fengshuo
2022-03-01 19:28:16 +08:00
parent 2cfcaf8959
commit 66de1ae1d2
13 changed files with 184 additions and 12 deletions

View File

@@ -13,6 +13,7 @@
#import "ThemeColor+Home.h"
#import "XPMacro.h"
#import "XPHtmlURL.h"
#import "XPConstant.h"
///View
#import "XPHomeNavView.h"
#import "XPHomeRecommendViewController.h"
@@ -20,6 +21,8 @@
#import "XPHomePartyContainerViewController.h"
#import "XPWebViewController.h"
UIKIT_EXTERN NSString *kHomeMoreScrollPageKey;
@interface XPHomeViewController ()<XPHomeNavViewDelegate, JXCategoryViewDelegate,JXCategoryListContainerViewDelegate>
///
@property (nonatomic,strong) NSArray<NSString *> *titles;
@@ -52,6 +55,7 @@
self.homeNavView.titleView.delegate = self;
self.homeNavView.titleView.listContainer = self.listContainerView;
[self.homeNavView.titleView reloadData];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(recommendMoreNotification:) name:kHomeMoreScrollPageKey object:nil];
}
- (void)initSubViewConstraints {
@@ -98,6 +102,14 @@
webVC.url = URLWithType(kHomeRankURL);
[self.navigationController pushViewController:webVC animated:YES];
}
#pragma mark - Event Response
- (void)recommendMoreNotification:(NSNotification *)notification {
NSDictionary * dic = notification.object;
//TODO: tad
[self.homeNavView.titleView selectItemAtIndex:1];
}
#pragma mark - Getters And Setters
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {