import Foundation
import UIKit

class register1CT: UIViewController,UITextViewDelegate{

var isEmpty:Bool?

override func viewDidLoad() {
super.viewDidLoad()
isEmpty=true
self.tx_Remark.delegate=self

}
@IBOutlet var quxiao:UIButton!
@IBOutlet var tx_Remark:UITextView!

@IBAction func OnBackup(sender:AnyObject){
self.dismissViewControllerAnimated(true, completion:{})
}

func textViewShouldBeginEditing(textView: UITextView) -> Bool {
if ((isEmpty) != nil){
self.tx_Remark.text = ""
self.tx_Remark.textColor=UIColor .blackColor()
isEmpty = false;
}
return true
}

}

相关文章:

  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-02-01
猜你喜欢
  • 2021-05-17
  • 2021-10-30
  • 2021-07-12
  • 2021-10-25
  • 2022-12-23
  • 2021-06-24
  • 2021-08-02
相关资源
相似解决方案