label showing top of screen instead of being on the inputAccessoryView
问题 Here is my code: var messageView : UITextView = { var textView = UITextView() textView.text = " Add your message here" textView.textColor = UIColor.lightGrayColor() textView.translatesAutoresizingMaskIntoConstraints = false textView.backgroundColor = UIColor.lightGrayColor() textView.layer.cornerRadius = 3 textView.clipsToBounds = true textView.keyboardAppearance = .Dark textView.layer.borderWidth = 1.0 textView.layer.borderColor = UIColor.lightGrayColor() textView.autocorrectionType = .no //