使用UITextView进行多行输入,输入完毕后关闭键盘
UIScrollView与UITextView配合使用,可实现多行输入。
var msgText: UITextView!
let sc = UIScrollView()
override func viewDidLoad() {
super.viewDidLoad()
let notificationCenter = NSNotificationCenter.defaultCenter()
notificationCenter.addObserver(self, selector: "handleKeyboardWillShowNotification:", name:
UIKeyboardWillShowNotification, object: nil)
notificationCenter.addObserver(self, selector: "handleKeyboardWillHideNotification:", name: