728x90 반응형 UITextViewe placeholder1 UITextview Placeholder override func viewDidLoad() { super.viewDidLoad() self.contentTextView.delegate = self self.contentTextView.text = "content".localized() } func textViewDidBeginEditing(_ textView: UITextView) { if textView.textColor == UIColor.lightGray{ textView.text = "" textView.textColor = UIColor.darkGray } else { textView.text = "content".localized() textView.textColor = UIColor.lightGray } } func textView.. 2022. 3. 3. 이전 1 다음 728x90 반응형