Tag: uitextview imessage extension

尝试访问紧凑模式下的UITextView时,iMessage扩展崩溃

以下是我在iMessage应用程序中的完整代码。 class MessagesViewController: MSMessagesAppViewController { @IBOutlet weak var messageView: UITextView! fileprivate func setupMessageView() { messageView.delegate = self messageView.layer.cornerRadius = 10 messageView.layer.borderColor = UIColor.black.cgColor messageView.layer.borderWidth = 5 messageView.text = "Tap to enter a message" messageView.textColor = UIColor(red:0.80, green:0.81, blue:0.82, alpha:1.0) messageView.textAlignment = .center messageView.font = UIFont.systemFont(ofSize: 20) messageView.textContainerInset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: […]