objective-c - 如何在页面中添加评论框?
<p><p>我正在尝试使用您在下图中看到的内容来模拟我的“添加评论”界面。但是,我在 XCode 库中找不到这样的 UI 元素。</p>
<p>这是一个自定义的 UI 元素吗?或者我能否找到与您在图表中看到的外观和感觉相同的 UI?</p>
<p> <img src="/image/qwBoT.png" alt="enter image description here"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您可以使用 UIImageView(银灰色背景)和其顶部的 UITextView 来近似它,该 UITextView 具有适当的cornerRadius 集。你需要:</p>
<pre><code>#import <QuartzCore/QuartzCore.h>
</code></pre>
<p>为了能够像这样设置 UITextView 的cornerRadius 属性:</p>
<pre><code> textView.layer.cornerRadius = 1.0f; // play around to see what gives you the above rounded effect to your needs.
</code></pre></p>
<p style="font-size: 20px;">关于objective-c - 如何在页面中添加评论框?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/7560056/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/7560056/
</a>
</p>
页:
[1]