在objective-c UISearchBar图标想要向左显示

时间:2016-01-28 19:40:30

标签: ios iphone uisearchbar

enter image description here

我想在左侧显示我的搜索图标。有什么办法吗?

1 个答案:

答案 0 :(得分:2)

UISearchBar reference开始,一个选项是使用- setPositionAdjustment:forSearchBarIcon:移动放大镜图标并使用searchTextPositionAdjustment属性确保搜索文字显示在图标的右侧。