Why combined search bar and scope bar don't align correctly?

风流意气都作罢 提交于 2019-12-11 20:14:08

问题


First of all, quote form iOS User Interface Guidelines

When a search bar is present, a scope bar can appear near it. The scope bar displays below the search bar, regardless of orientation, unless you use a search display controller in your code (for more information on the way this works, see UISearchDisplayController Class Reference). When you use a search display controller, the scope bar is displayed within the search bar to the right of the search field when the device is in landscape orientation (in portrait orientation, it’s below the search bar).

My problem is search input field doesn't align with scope bar, as showed in the picture.

Anyone knows what causes this?

来源:https://stackoverflow.com/questions/23790468/why-combined-search-bar-and-scope-bar-dont-align-correctly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!