我遇到了 RxSwift 和 RxCocoa 的问题。我已经更新到最新版本 3.3 和 Xcode 8.3 但是 RxCocoa 的自动完成功能存在问题。
每次我写textfield.rx.text。不会有自动补全
import UIKit
import RxSwift
import RxCocoa
class FirstViewController: UIViewController {
@IBOutlet weak var textField2: UITextField!
@IBOutlet weak var textField1: UITextField!
var textField1Observerble: Driver<String?>!
var textField2Observerble: Driver<String?>!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
textField1.rx.text.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
我们怎样才能解决这个问题?