@@ -267,6 +267,11 @@ - (void)initSearchHistoryView {
267267
268268 [[_searchHistoryView subviews ] makeObjectsPerformSelector: @selector (removeFromSuperview )];
269269
270+ {
271+ UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , kScreen_Width , 1 )];
272+ view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd" ];
273+ [_searchHistoryView addSubview: view];
274+ }
270275 NSArray *array = [CSSearchModel getSearchHistory ];
271276 CGFloat imageLeft = 12 .0f ;
272277 CGFloat textLeft = 34 .0f ;
@@ -289,13 +294,16 @@ - (void)initSearchHistoryView {
289294 rightImageView.centerY = lblHistory.centerY ;
290295 rightImageView.image = [UIImage imageNamed: @" icon_arrow_searchHistory" ];
291296
297+ UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (imageLeft, (i + 1 ) * height, kScreen_Width - imageLeft, 1 )];
298+ view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd" ];
292299
293300 UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc ] initWithTarget: self action: @selector (didClickedHistory: )];
294301 [lblHistory addGestureRecognizer: tapGestureRecognizer];
295302
296303 [_searchHistoryView addSubview: lblHistory];
297304 [_searchHistoryView addSubview: leftView];
298305 [_searchHistoryView addSubview: rightImageView];
306+ [_searchHistoryView addSubview: view];
299307 }
300308
301309 if (array.count ) {
@@ -307,6 +315,11 @@ - (void)initSearchHistoryView {
307315 [btnClean setFrame: CGRectMake (0 , array.count * height, kScreen_Width , height)];
308316 [_searchHistoryView addSubview: btnClean];
309317 [btnClean addTarget: self action: @selector (didCLickedCleanSearchHistory: ) forControlEvents: UIControlEventTouchUpInside];
318+ {
319+ UIView *view = [[UIView alloc ] initWithFrame: CGRectMake (imageLeft, (array.count + 1 ) * height, kScreen_Width - imageLeft, 1 )];
320+ view.backgroundColor = [UIColor colorWithHexString: @" 0xdddddd" ];
321+ [_searchHistoryView addSubview: view];
322+ }
310323 }
311324
312325}
0 commit comments