|
@@ -40,6 +40,7 @@
|
|
// Do any additional setup after loading the view.
|
|
// Do any additional setup after loading the view.
|
|
self.ks_prefersNavigationBarHidden = YES;
|
|
self.ks_prefersNavigationBarHidden = YES;
|
|
[self configUI];
|
|
[self configUI];
|
|
|
|
+ [self requestSubjectList];
|
|
}
|
|
}
|
|
|
|
|
|
- (void)configUI {
|
|
- (void)configUI {
|
|
@@ -57,8 +58,6 @@
|
|
make.left.right.top.mas_equalTo(self.view);
|
|
make.left.right.top.mas_equalTo(self.view);
|
|
make.height.mas_equalTo(navHeight);
|
|
make.height.mas_equalTo(navHeight);
|
|
}];
|
|
}];
|
|
-
|
|
|
|
- [self configCategoryView:navHeight];
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- (void)configCategoryView:(NSInteger)topHeight {
|
|
- (void)configCategoryView:(NSInteger)topHeight {
|
|
@@ -101,7 +100,6 @@
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
[super viewWillAppear:animated];
|
|
[super viewWillAppear:animated];
|
|
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
|
|
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
|
|
- [self requestSubjectList];
|
|
|
|
// 页面appear 禁用
|
|
// 页面appear 禁用
|
|
[IQKeyboardManager sharedManager].enable = NO;
|
|
[IQKeyboardManager sharedManager].enable = NO;
|
|
}
|
|
}
|
|
@@ -111,6 +109,7 @@
|
|
// 页面Disappear 启用
|
|
// 页面Disappear 启用
|
|
[IQKeyboardManager sharedManager].enable = YES;
|
|
[IQKeyboardManager sharedManager].enable = YES;
|
|
}
|
|
}
|
|
|
|
+
|
|
- (void)requestSubjectList {
|
|
- (void)requestSubjectList {
|
|
[KSNetworkingManager subjectQueryPageRequest:KS_GET success:^(NSDictionary * _Nonnull dic) {
|
|
[KSNetworkingManager subjectQueryPageRequest:KS_GET success:^(NSDictionary * _Nonnull dic) {
|
|
if ([dic ks_integerValueForKey:@"code"] == 200 && [dic ks_boolValueForKey:@"status"]) {
|
|
if ([dic ks_integerValueForKey:@"code"] == 200 && [dic ks_boolValueForKey:@"status"]) {
|
|
@@ -123,16 +122,21 @@
|
|
[subjectParmArray addObject:orchestParm];
|
|
[subjectParmArray addObject:orchestParm];
|
|
}
|
|
}
|
|
self.subjectList = [subjectParmArray mutableCopy];
|
|
self.subjectList = [subjectParmArray mutableCopy];
|
|
- [self refreshSubjectMessage];
|
|
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
[LOADING_MANAGER MBShowAUTOHidingInWindow:MESSAGEKEY];
|
|
[LOADING_MANAGER MBShowAUTOHidingInWindow:MESSAGEKEY];
|
|
}
|
|
}
|
|
|
|
+ [self configCategoryView];
|
|
} faliure:^(NSError * _Nonnull error) {
|
|
} faliure:^(NSError * _Nonnull error) {
|
|
-
|
|
|
|
|
|
+ [self configCategoryView];
|
|
}];
|
|
}];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+- (void)configCategoryView {
|
|
|
|
+ CGFloat navHeight = [HomeArrangeNavView getViewHeight];
|
|
|
|
+ [self configCategoryView:navHeight];
|
|
|
|
+}
|
|
|
|
+
|
|
- (void)refreshSubjectMessage {
|
|
- (void)refreshSubjectMessage {
|
|
for (NSInteger index = 0; index < self.listViewArray.count; index++) {
|
|
for (NSInteger index = 0; index < self.listViewArray.count; index++) {
|
|
id view = self.listViewArray[index];
|
|
id view = self.listViewArray[index];
|