2016-06-08 81 views
2

我正在使用QuickDialog库中的QEntryElement。由于某种原因,在iPad中看到QEntryElement的标题具有省略号。如何解决此问题。QuickDialog QEntryElement省略号和重叠问题

iPad Portrait

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

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

同样的问题...我cannto找到办法在代码来解决eather ......貌似在TableViewCell aplyed为SOEM布局约束细胞元素,然后大小不工作,至极试图QTableViewCell ...你有解决它吗?一些解决方法?我有很多基于这个lib的代码... – Renetik

+0

到目前为止没有解决方案:( – NinjaCoder

+0

啊我已经有一个...但我忘了我做了什么;)必须找到它... – Renetik

回答

0

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

我检查了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