0
Im現在、searchBar
を使用しています。私は、左のアイコンをカスタムUIImageViewに変更しました。ボタンを押すと元の検索アイコンに戻ります。Swift SearchBarプログラムで変更された後に元の検索アイコンを取得する方法
//my custom search iconBar
searchBar.setImage(UIImage(named:"img1"), for: .search, state: .normal)
func changeSearchBarIconBackToOriginal {
//searchbar icon should be back to original image here
}