|
@@ -26,7 +26,7 @@ static NSString *cellID = @"cellID";
|
26
|
26
|
|
27
|
27
|
- (UITableView *)tableView {
|
28
|
28
|
if (!_tableView) {
|
29
|
|
- _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT - NavHeight - TabbarHeight) style:UITableViewStylePlain];
|
|
29
|
+ _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, -1, SCREEN_WIDTH, SCREEN_HEIGHT - NavHeight - TabbarHeight) style:UITableViewStylePlain];
|
30
|
30
|
_tableView.delegate = self;
|
31
|
31
|
_tableView.dataSource = self;
|
32
|
32
|
[_tableView registerNib:[UINib nibWithNibName:@"KXSPHomeViewCell" bundle:nil] forCellReuseIdentifier:cellID];
|
|
@@ -124,20 +124,24 @@ static NSString *cellID = @"cellID";
|
124
|
124
|
[self.view addSubview:self.tableView];
|
125
|
125
|
}
|
126
|
126
|
|
|
127
|
+- (void)viewWillAppear:(BOOL)animated {
|
|
128
|
+ [super viewWillAppear:animated];
|
|
129
|
+
|
|
130
|
+ self.navigationController.navigationBar.barTintColor = WWColor(219, 141, 255, 1);
|
|
131
|
+}
|
|
132
|
+
|
127
|
133
|
#pragma mark - 创建导航栏
|
128
|
134
|
- (void)createNaviBar {
|
129
|
135
|
NSString *appName = [NSString getAppName];
|
130
|
136
|
self.name = appName;
|
131
|
137
|
|
132
|
|
-// for (UIView *views in self.navigationController.navigationBar.subviews) {
|
133
|
|
-// for (UIView *view in views.subviews) {
|
134
|
|
-// if ([view isKindOfClass:[UIImageView class]]) {
|
135
|
|
-// view.hidden = YES;
|
136
|
|
-// }
|
137
|
|
-// }
|
138
|
|
-// }
|
139
|
|
-
|
140
|
|
- self.navigationController.navigationBar.barTintColor = WWColor(219, 141, 255, 1);
|
|
138
|
+ for (UIView *views in self.navigationController.navigationBar.subviews) {
|
|
139
|
+ for (UIView *view in views.subviews) {
|
|
140
|
+ if ([view isKindOfClass:[UIImageView class]]) {
|
|
141
|
+ view.hidden = YES;
|
|
142
|
+ }
|
|
143
|
+ }
|
|
144
|
+ }
|
141
|
145
|
}
|
142
|
146
|
|
143
|
147
|
#pragma mark - tableView dataSource
|
|
@@ -167,6 +171,15 @@ static NSString *cellID = @"cellID";
|
167
|
171
|
return cell;
|
168
|
172
|
}
|
169
|
173
|
|
|
174
|
+- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
|
|
175
|
+ if (scrollView == self.tableView) {
|
|
176
|
+ CGFloat offY = scrollView.contentOffset.y;
|
|
177
|
+ if (offY < 0) {
|
|
178
|
+ scrollView.contentOffset = CGPointZero;
|
|
179
|
+ }
|
|
180
|
+ }
|
|
181
|
+}
|
|
182
|
+
|
170
|
183
|
#pragma mark - 点击最底部质检标准图片
|
171
|
184
|
- (void)onClickBottomImage {
|
172
|
185
|
NSLog(@"你点击了我");
|