uitableview的索引正在缩小
我有一个与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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的意思是在删除键盘以进行搜索后将索引大小调整为表的完整长度吗?如果是这样,可以使用
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
.我在我的源代码中遇到了这个问题。当我从搜索结果加载视图时,我实际上释放了键盘。当我从新加载的视图返回并按标准取消按钮时,它会加载带有半索引视图的表格视图。现在我删除了实际释放键盘的代码。然后就正常工作了。
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.