动态标题,就像在 Notes 应用程序中一样
当用户在 uitextview 中输入文本时,我希望导航栏的标题像在 Notes 应用程序中一样动态更改。
我怎样才能实现这个目标?
我认为使用了标签,不是吗?
谢谢弗兰
编辑
:我知道如何更改导航栏的标题,但是如何以文本视图与标题绑定的方式执行此操作,因此当用户在同一时刻输入第一行文本时,标题会发生变化(字母通过信件)?
when the user enters text in a uitextview I would that the title of the navigation bar changed dynamically like it happens in the Notes app.
How can I achieve this?
I think a label is used, don't I?
Thanks
Fran
EDIT: I know how change the title of a navigation bar, but how do this in a such way that the textview is tied to the title, so while user enters the first line of text in the same moment the title changes (letter by letter)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从以下位置获取此信息: http://www.iphonedevsdk.com/forum/iphone-sdk-development/7015-set-title-uinavigationbar.html iphonedevsdk.com/forum/iphone-sdk-development/7015-set-title-uinavigationbar.html
Got this info from: http://www.iphonedevsdk.com/forum/iphone-sdk-development/7015-set-title-uinavigationbar.html
我知道您可以通过以下方式从子视图控制器中设置导航控制器的标题:
或
但是,这些可能无法交互工作。 (不是在 Mac OS X 机器上,否则我会尝试一下。)
I know you can set the title of a navigation controller from within a child view controller simply via:
or
However, these may not work interactively. (Not at a Mac OS X box otherwise I'd try it out.)
我的问题的答案是 此处
The answer to my question is here