去掉導航欄的邊界黑線
in viewDidload:
[self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.shadowImage = [[UIImage alloc] init];
in viewDidload:
[self.textSearchBar setBackgroundImage:[[UIImage alloc] init]];
in stroryboard:
選中搜索框——右邊in attribute inspector——View 在Tint的顏色欄中選擇 clear color