我已經爲我的UISearchBar下面的代碼:的UISearchBar清晰的背景圖像
UISearchBar * searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, 300, 44)];
searchBar.placeholder = @"Search for a tag";
searchBar.delegate = self;
結果如下:
我想白色背景更改爲清晰顏色。我該怎麼做呢?基本上我想要textField背景顏色清晰。
請嘗試[這裏] [1] [1]:http://stackoverflow.com/questions/2139115/uisearchbar-clear-background-color-or-set-background-像iphone-SDK 希望它會幫助你.... 感謝 –
我最近面對這個問題,我已經不是設置透明背景圖像的不同的解決方案http://stackoverflow.com/questions/37158702/ ios-uisearchbar-background-color-in-ios-9 –