@@ -169,7 +169,7 @@ - (void)initSearchResultsTableView {
169169 self.headerLabel = ({
170170 UILabel *label = [[UILabel alloc ] initWithFrame: CGRectMake (0 , 2 , kScreen_Width , 44 )];
171171 label.backgroundColor = [UIColor clearColor ];
172- label.textColor = [UIColor colorWithHexString: @" 0x999999 " ] ;
172+ label.textColor = kColor999 ;
173173 label.textAlignment = NSTextAlignmentCenter;
174174 label.font = [UIFont systemFontOfSize: 12 ];
175175 label;
@@ -207,7 +207,7 @@ - (void)initSearchHistoryView {
207207
208208 {
209209 UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , kScreen_Width , 0.5 )];
210- view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd " ] ;
210+ view.backgroundColor = kColorDDD ;
211211 [_searchHistoryView addSubview: view];
212212 }
213213 NSArray *array = [CSSearchModel getSearchHistory ];
@@ -231,7 +231,7 @@ - (void)initSearchHistoryView {
231231 UILabel *lblHistory = [[UILabel alloc ] initWithFrame: CGRectMake (textLeft, i * height, kScreen_Width - textLeft, height)];
232232 lblHistory.userInteractionEnabled = YES ;
233233 lblHistory.font = [UIFont systemFontOfSize: 14 ];
234- lblHistory.textColor = [UIColor colorWithHexString: @" 0x222222 " ] ;
234+ lblHistory.textColor = kColor222 ;
235235 lblHistory.text = array[i];
236236
237237 UIImageView *leftView = [[UIImageView alloc ] initWithFrame: CGRectMake (0 , 0 , 15 , 15 )];
@@ -245,7 +245,7 @@ - (void)initSearchHistoryView {
245245 rightImageView.image = [UIImage imageNamed: @" icon_arrow_searchHistory" ];
246246
247247 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 ;
249249
250250 UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (didClickedHistory: )];
251251 [lblHistory addGestureRecognizer: tapGestureRecognizer];
@@ -267,7 +267,7 @@ - (void)initSearchHistoryView {
267267 [btnClean addTarget: self action: @selector (didCLickedCleanSearchHistory: ) forControlEvents: UIControlEventTouchUpInside];
268268 {
269269 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 ;
271271 [_searchHistoryView addSubview: view];
272272 }
273273 }
0 commit comments