如何调整搜索栏大小以使索引不重叠
我一直在浏览堆栈溢出,但找不到对此的简单新手级解释。我有以下行为。当用户单击搜索时,索引将被删除,并且搜索栏旁边会出现取消按钮。当按下取消按钮时,取消按钮将被移除并且索引将重新出现。
有谁知道一种简单的方法可以将右侧搜索栏(文本字段)的宽度减少 20-30 像素。这就是联系人应用程序处理此叠加层的方式。
任何帮助不胜感激。我已经在 xib 文件中构建了视图。
I've been browsing stack overflow and can't find a simple newbie-level explanation for this. I have the following behaviour. When the user clicks the search the index is removed and a cancel button appears next to the search bar. When cancel is pressed, the cancel button is removed and the index reappears.
Does anyone know a simple way to reduce the width of the search bar (text field) by 20-30 pixels on the right. This is the way the contacts app deals with this overlay.
Any help gratefully appreciated. I've built the view in a xib file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论