菜鸟教程小白 发表于 2022-12-11 16:41:38

ios - QuickDialog QEntryElement 省略号和重叠问题


                                            <p><p>我正在使用 QuickDialog 库中的 <code>QEntryElement</code>。出于某种原因,在 iPad 中看到时,<code>QEntryElement</code> 的标题有省略号。我应该如何解决这个问题。</p>

<p> <a href="/image/oa59e.png" rel="noreferrer noopener nofollow"><img src="/image/oa59e.png" alt="iPad Portrait"/></a> </p>

<p>另一个问题是在 iPad 横向模式下键入的文本与 <code>QEntryElement</code> 的标题重叠。
<a href="/image/gGlpG.png" rel="noreferrer noopener nofollow"><img src="/image/gGlpG.png" alt="iPad Landscape"/></a> </p>

<pre><code> let userNameElement: QEntryElement = QEntryElement(key: &#34;ACCOUNT&#34;)
    userNameElement.title = &#34;Account&#34;
    userNameElement.keyboardType = UIKeyboardType.EmailAddress
    userNameElement.autocapitalizationType = UITextAutocapitalizationType.None
    userNameElement.autocorrectionType = UITextAutocorrectionType.No
</code></pre></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>所以对于省略号问题我这样做了...</p>

<p>我检查了 QuickDialog,所以我在本地拥有它
像这样修改 QTableViewCell:</p>

<pre><code>- (void)layoutSubviewsInsideBounds:(CGRect)bounds {
   ...
   self.textLabel.frame = CGRectMake(15, self.textLabel.frame.origin.y,
            self.textLabel.frame.size.width, self.textLabel.frame.size.height);
}
</code></pre>

<p>我知道它不是很好的解决方案,但它看起来更好...... </p>

<p> <a href="/image/Q6hOe.png" rel="noreferrer noopener nofollow"><img src="/image/Q6hOe.png" alt="enter image description here"/></a> </p>

<p>当我评论添加的行时,我得到了这个:
<a href="/image/7WoKM.png" rel="noreferrer noopener nofollow"><img src="/image/7WoKM.png" alt="enter image description here"/></a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - QuickDialog QEntryElement 省略号和重叠问题,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/37711782/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/37711782/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - QuickDialog QEntryElement 省略号和重叠问题