如何在Apple的通讯录中创建“笔记"单元格 [英] How to do a 'notes' cell like in Apple's Contacts

查看:41
本文介绍了如何在Apple的通讯录中创建“笔记"单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难找到这个答案.我想像在苹果的通讯录中那样做一个单元格.这是笔记单元格.只是为了澄清一下,在联系人"中,当您处于编辑模式时,然后去添加字段并点按便笺,然后开始编辑,似乎它的行为就像一个文本视图,而您可以按回车键,然后转到新行.该单元格不超过您使用的单元格.当然,完成后,您自然会在视图中看到所有内容.

I'm having trouble finding this answer. I want to do a cell like in Apple's Contacts. It's the notes cell. Just to clarify, in Contacts, when you are in edit mode, and go to add field and tap notes, and start editing, it seems like it behaves like a text view whereas you can hit return and it'll go to a new line. The cell's no larger than what you use. And naturally you'll see everything in the view when you're finished.

有人知道怎么做或在哪里找到信息吗?

Does anyone know how to do this or where to find the info?

谢谢.

推荐答案

这是一个普通单元,其中具有

It is an normal cell and in it has an UITextView Class Reference.

键入时,需要换行来调整单元格的高度和textView的高度.当达到最大高度时,只需允许textView滚动即可.祝你好运.

When you type and you need an new line resize the height of the cell and the height of the textView. When you reach you max height just allow textView scrolling. Good luck.

要捕获textView事件 UITextViewDelegate协议参考

To catch the textView events UITextViewDelegate Protocol Reference

这篇关于如何在Apple的通讯录中创建“笔记"单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆