@@ -169,7 +169,7 @@ - (void)initSearchResultsTableView {
169
169
self.headerLabel = ({
170
170
UILabel *label = [[UILabel alloc ] initWithFrame: CGRectMake (0 , 2 , kScreen_Width , 44 )];
171
171
label.backgroundColor = [UIColor clearColor ];
172
- label.textColor = [UIColor colorWithHexString: @" 0x999999 " ] ;
172
+ label.textColor = kColor999 ;
173
173
label.textAlignment = NSTextAlignmentCenter;
174
174
label.font = [UIFont systemFontOfSize: 12 ];
175
175
label;
@@ -207,7 +207,7 @@ - (void)initSearchHistoryView {
207
207
208
208
{
209
209
UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , kScreen_Width , 0.5 )];
210
- view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd " ] ;
210
+ view.backgroundColor = kColorDDD ;
211
211
[_searchHistoryView addSubview: view];
212
212
}
213
213
NSArray *array = [CSSearchModel getSearchHistory ];
@@ -231,7 +231,7 @@ - (void)initSearchHistoryView {
231
231
UILabel *lblHistory = [[UILabel alloc ] initWithFrame: CGRectMake (textLeft, i * height, kScreen_Width - textLeft, height)];
232
232
lblHistory.userInteractionEnabled = YES ;
233
233
lblHistory.font = [UIFont systemFontOfSize: 14 ];
234
- lblHistory.textColor = [UIColor colorWithHexString: @" 0x222222 " ] ;
234
+ lblHistory.textColor = kColor222 ;
235
235
lblHistory.text = array[i];
236
236
237
237
UIImageView *leftView = [[UIImageView alloc ] initWithFrame: CGRectMake (0 , 0 , 15 , 15 )];
@@ -245,7 +245,7 @@ - (void)initSearchHistoryView {
245
245
rightImageView.image = [UIImage imageNamed: @" icon_arrow_searchHistory" ];
246
246
247
247
UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (imageLeft, (i + 1 ) * height, kScreen_Width - imageLeft, 0.5 )];
248
- view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd " ] ;
248
+ view.backgroundColor = kColorDDD ;
249
249
250
250
UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (didClickedHistory: )];
251
251
[lblHistory addGestureRecognizer: tapGestureRecognizer];
@@ -267,7 +267,7 @@ - (void)initSearchHistoryView {
267
267
[btnClean addTarget: self action: @selector (didCLickedCleanSearchHistory: ) forControlEvents: UIControlEventTouchUpInside];
268
268
{
269
269
UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (imageLeft, (array.count + 1 ) * height, kScreen_Width - imageLeft, 0.5 )];
270
- view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd " ] ;
270
+ view.backgroundColor = kColorDDD ;
271
271
[_searchHistoryView addSubview: view];
272
272
}
273
273
}
0 commit comments