如何更改钛 iPhone 的取消按钮搜索栏文本?

发布于 2024-09-10 09:39:40 字数 122 浏览 2 评论 0原文

当我在方法 Titanium.UI.createSearchBar 中将值“true”设置为 showCancel 属性时。它向我显示取消按钮,但我想将该按钮文本自定义为“Go”或其他任何内容。我该怎么做?请给我建议。非常感谢你。

When I set the value 'true' to showCancel property in the method Titanium.UI.createSearchBar. It displays me the cancel button, but I would like to customize that button text to Go or anything else. How do I do that? Please give me suggestions. Thanks you so much.

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

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

发布评论

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

评论(1

林空鹿饮溪 2024-09-17 09:39:40

我不相信 Titanium Mobile SDK 1.4 可以更改按钮文本。

作为解决方法,您可以将自己的按钮添加到屏幕上并使其与表格视图交互。但这不是一个理想的解决方案。

请在下面找到当前文档链接。

http://developer.appcelerator.com/apidoc/mobile/最新/Titanium.UI.SearchBar-object

I don't believe in Titanium Mobile SDK 1.4 you can change the button text.

As a work around you could add your own button to the screen and have it interact with the tableview. Not an ideal solution though.

Please find below the current documentation link.

http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.SearchBar-object

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