菜鸟教程小白 发表于 2022-12-12 13:33:01

ios - 如何在ios的UITextView中创建UILabel


                                            <p><p>我想在 gmail 应用程序等文本字段中添加多种技能。返回键盘时创建新的<code>UILabel</code>,退格时删除<code>UILabel</code>。实际上我想添加多个技能,所以我可以使用添加按钮并转到下一个 View 并在那里添加,但我想要像 gmail 应用程序 <img src="/image/Uw3CF.png" alt="enter image description here"/> </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>使用其中一个一流的库怎么样?这种行为已经实现了很多次。 </p>

<p>例如看看这个:
<a href="https://github.com/tristanhimmelman/THContactPicker/tree/master/Classes" rel="noreferrer noopener nofollow">THContactPicker</a> </p>

<p>它使用 UIView 和 UITextField 子类来管理这个任务,你会得到一堆有用的委托(delegate)方法。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何在ios的UITextView中创建UILabel,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/27766261/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/27766261/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何在ios的UITextView中创建UILabel