Мне нужно создать обычную панель поиска, как это. Проблема, с которой я столкнулась, - это выровнять текст заполнителя, а также поместить значок поиска справа. У меня есть png значка поиска, который я пытался использовать в UIImageView
, и установите UIImageView
как rightView
в UISearchBar
UITextField
. Это решение не сработало, и у меня кончились идеи. У кого-нибудь есть решение?