首页的推荐已经完成
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user