gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:59:53 24 4
gpt4 key购买 nike

我正在使用 QuickDialog 库中的 QEntryElement。由于某些原因,QEntryElement 的标题在 iPad 中看到时有省略号。我应该如何解决这个问题。

iPad Portrait

另一个问题是在横向模式下,在 iPad 中键入的文本与 QEntryElement 的标题重叠。 iPad Landscape

 let userNameElement: QEntryElement = QEntryElement(key: "ACCOUNT")
userNameElement.title = "Account"
userNameElement.keyboardType = UIKeyboardType.EmailAddress
userNameElement.autocapitalizationType = UITextAutocapitalizationType.None
userNameElement.autocorrectionType = UITextAutocorrectionType.No

最佳答案

所以对于省略号问题,我这样做了......

我检查了 QuickDialog,所以我在本地有它并且像这样修改 QTableViewCell:

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

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

enter image description here

当我评论添加的行时,我得到了这个: enter image description here

关于ios - QuickDialog QEntryElement 省略号和重叠问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37711782/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com