2

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

iPad 肖像

另一个问题是在 iPad 横向模式下键入的文本与QEntryElement. iPad横屏

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

1 回答 1

0

So for ellipsis problem I did this...

I checked out QuickDialog so I have it locally and modified QTableViewCell like this:

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

I know its not nice solution but it looks better ...

enter image description here

and when I comment that added line I get back this : enter image description here

于 2016-07-05T21:04:50.600 回答