标签: ios iphone uisearchbar
我想在左侧显示我的搜索图标。有什么办法吗?
答案 0 :(得分:2)
从UISearchBar reference开始,一个选项是使用- setPositionAdjustment:forSearchBarIcon:移动放大镜图标并使用searchTextPositionAdjustment属性确保搜索文字显示在图标的右侧。
- setPositionAdjustment:forSearchBarIcon:
searchTextPositionAdjustment