IOS removes the border Gray Line in the navigation bar; Removes the border Gray Line in the search box and the text box shadow.
To implement the above interface, the display is usually inconsistent with the Expected One, although the color we set is the same. You can perform the following steps:
1. Disable the transparency of navigationBar
Self. navigationController. navigationBar. translucent = NO;
2. Use the native digital color meter to measure the rgb color of the navigation bar, and then set the color of the navigation bar and the background color of the following view.
3. Remove the gray lines under the navigation bar
[Self. navigationController. navigationBar setBackgroundImage: [[UIImage alloc] init] forBarMetrics: UIBarMetricsDefault];
[Self. navigationController. navigationBar setShadowImage: [[UIImage alloc] init];
Remove the border Gray Line in the navigation bar
[Self. navigationController. navigationBar setBackgroundImage: [[UIImage alloc] init] forBarMetrics: UIBarMetricsDefault];
Self. navigationController. navigationBar. shadowImage = [[UIImage alloc] init];
Remove the black line from the search box
[Self. mySearchBar setBackgroundImage: [[UIImage alloc] init];
Remove the text field shadow from the search box.
On the stroryboard, select the search box --> in attribute inspector --> View, and select clear color in the Tint color bar.