uitableview的索引正在缩小

发布于 2024-09-16 04:35:41 字数 187 浏览 4 评论 0原文

我有一个与iPhone通讯录非常相似的应用程序。整个搜索和索引内容是使用 searchdisplay 控制器实现的。问题是,从搜索结果来看,当我单击某个单元格时,它实际上会加载一个新屏幕,而在按回键并转到主表格视图屏幕时,索引会收缩,

我认为可能的原因是键盘。即使在搜索栏出现键盘后,有没有办法自动调整 uitableview 右侧索引的大小。

I have an app very similar to address book of iphone. The entire search and index stuff is implemented using the searchdisplay controller. The problem is, from the search results when i click some cell, it actually loads a new screen and while pressing back and going to home tableview screen the index is shrinks

The possible reason which I could think is the keyboard. Is there way to make auto resizing of the index on the right side of the uitableview even after the keyboard appears for searchbar.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风筝有风,海豚有海 2024-09-23 04:35:41

您的意思是在删除键盘以进行搜索后将索引大小调整为表的完整长度吗?如果是这样,可以使用reloadSectionIndexTitles

Do you mean resize the index to the full length of the table after you have removed the keyboard for the search has gone? If so, use can reloadSectionIndexTitles.

二货你真萌 2024-09-23 04:35:41

我在我的源代码中遇到了这个问题。当我从搜索结果加载视图时,我实际上释放了键盘。当我从新加载的视图返回并按标准取消按钮时,它会加载带有半索引视图的表格视图。现在我删除了实际释放键盘的代码。然后就正常工作了。

i got the problem in my source code. I actually release the keyboard when i am loading the view from the search results. when i come back from the newly loaded view and press the standard cancel button it loaded the tableview with half index view. Now i deleted the code which actually releases the keyboard. Then it worked normally.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文