UITextField LeftView,添加多个按钮,例如 Mail To:
我正在创建一个模仿电子邮件客户端的应用程序(它是电子邮件,但对最终用户来说看起来就是这样,并进行了一些增强)。我想复制邮件应用程序中“收件人:”字段的功能。我发现我可以将视图(按钮)添加到 LeftView 属性,但如果它们添加多个收件人,那么我必须处理包装等。我在几个应用程序中看到了此功能,并希望有一种方法可以实现这一点无需自行滚动并处理换行、通过处理空文本字段中的退格键来删除等即可实现。
如果有人有任何建议/指针,我将不胜感激。
I am creating an application that mimics an email client (it's email, but it looks that way to the end user with a few enhancements). I am wanting to replicate the functionality of the To: field in the Mail app. I have found that I can add views (Buttons) to the LeftView property of but if they add several reciepents then I have to handle wrapping etc. I have seen this functionality in several apps and was hoping that there was a way that this could be achieved without having to roll my own and handle wrapping, removal by handling backspace in an empty textfield, etc.
If anyone has any suggestions/pointers, I would greatly appreciate it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论