Hi guys I am trying to test the example of "Observing text edits" from https://github.com/ReactiveCocoa/ReactiveCocoa
However when i try to use rac_textSignal()
signal I got an error saying "Value of type UITextField has no member "rac_textSignal"
Can someone please point out what I am doing wrong here? Thank you so much.
class ViewController: UIViewController {
@IBOutlet var textField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let searchStrings = textField.rac_textSignal()
}
}
无论您在哪里使用 ReactiveCocoa,都可以导入它。
import ReactiveCocoa
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.