IOS 7.1 Serial View UISearchBar

I am working on an application, and today I tested iOS 7.1. So far, my search bar has been normal:

iOS 7.0.3

But now I have this problem:

iOS 7.1

A gray view will appear, and I do not know how to remove it, because I do not have this representation in my code. Does anyone have the same problem? Is this a bug in iOS 7.1?

+4
source share
2 answers

My quick fix used the code I found here: https://stackoverflow.com/a/18664917/1153630

And then:

searchBar.backgroundImage = [UIImage imageWithColor:[UIColor clearColor]];

I'm still not very impressed with this: update the answer when I find the best way.

You can also check: Changed color in iOS7.1, how to change color of SearchBar?

+7

, :

searchBar.backgroundImage = [[UIImage alloc] init];

UIImage, @Jugale.

+4

Source: https://habr.com/ru/post/1531344/


All Articles