|
@@ -45,7 +45,7 @@ static NSString *cellID = @"cellID";
|
45
|
45
|
_headerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 200)];
|
46
|
46
|
|
47
|
47
|
UIColor *topColor = WWColor(219, 141, 255, 1);
|
48
|
|
- UIColor *bottomColor = WWColor(245, 245, 245, 1);
|
|
48
|
+ UIColor *bottomColor = WWColor(233, 202, 248, 1);
|
49
|
49
|
UIImage *bgImg = [UIImage gradientColorImageFromColors:@[topColor, bottomColor] gradientType:GradientTypeTopToBottom imgSize:_headerView.frame.size];
|
50
|
50
|
[_headerView setBackgroundColor:[UIColor colorWithPatternImage:bgImg]];
|
51
|
51
|
|
|
@@ -128,6 +128,16 @@ static NSString *cellID = @"cellID";
|
128
|
128
|
- (void)createNaviBar {
|
129
|
129
|
NSString *appName = [NSString getAppName];
|
130
|
130
|
self.name = appName;
|
|
131
|
+
|
|
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);
|
131
|
141
|
}
|
132
|
142
|
|
133
|
143
|
#pragma mark - tableView dataSource
|
|
@@ -146,6 +156,13 @@ static NSString *cellID = @"cellID";
|
146
|
156
|
cell.pushVC = self;
|
147
|
157
|
cell.titleLabel.text = titleArray[indexPath.row];
|
148
|
158
|
cell.indexPath = indexPath;
|
|
159
|
+ if (indexPath.row == 0) {
|
|
160
|
+ UIColor *topColor = WWColor(233, 202, 248, 1);
|
|
161
|
+ UIColor *bottomColor = WWColor(245, 245, 245, 1);
|
|
162
|
+ UIImage *bgImg = [UIImage gradientColorImageFromColors:@[topColor, bottomColor] gradientType:GradientTypeTopToBottom imgSize:CGSizeMake(SCREEN_WIDTH, 190)];
|
|
163
|
+ [cell.contentView setBackgroundColor:[UIColor colorWithPatternImage:bgImg]];
|
|
164
|
+ }
|
|
165
|
+
|
149
|
166
|
cell.dataSource = self.dataArray[indexPath.row];
|
150
|
167
|
return cell;
|
151
|
168
|
}
|