1:  NSNotificationCenter.defaultCenter().addObserver(self, selector: "textDidChange", name: UITextFieldTextDidChangeNotification, object: nil)

 

不要忘了移除:

   1:   deinit{
   2:          NSNotificationCenter.defaultCenter().removeObserver(self)
   3:      }

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案