Layout problems after replacing UILabel with UITextView in a UITableViewCell
问题 I've got basic chat functionality as part of an App I'm building. It is basically a UITable View where the UITableViewCell only contains a UILabel (the chat message text) and a UIView (serving as a speech bubble, surrounding the text. Here's the code: class ChatMessageViewCellController: UITableViewCell { var ChatMessageText = UILabel() var ChatBubble = UIView() var leadingConstraint: NSLayoutConstraint! var trailingConstraint: NSLayoutConstraint! var isIncoming: Bool! { didSet { if self