从 UITextView 中提取第一个单词
在我的应用程序中,我有一个 UILabel(即标题)和一个 UITextView(即描述),我希望标题 UILabel 成为在 UITextView 中输入的第一个单词。有谁知道该怎么做?
In my app I have a UILabel which is the title and a UITextView which is the description and I want the title UILabel to be the first word typed into the UITextView. Does anyone know how to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我很好地理解你的问题,这段代码可能会解决问题:
If I understand well your problem, this code might do the trick: