Hi everyone,
I am testing for the first time RectiveUI (v 6.4.0.1) and I have implemented a simple Login UIViewController. I am not using Xamarin.Forms, all my code is pure iOS API.
This is my ViewController's code:
public partial class LoginViewController : ReactiveViewController, IViewFor<LoginViewModel>
{
public override void ViewDidLoad()
{
base.ViewDidLoad();
// bind UI...
_viewModel = new LoginViewModel();
// bind the fields...
this.Bind(_viewModel, vm => vm.IsValid, lvc => lvc.SignIn.Enabled);
this.Bind(_viewModel, vm => vm.UserEmailProperty, lvc => lvc.UserEmail.Text);
this.Bind(_viewModel, vm => vm.PasswordProperty, lvc => lvc.Password.Text);
Observable.FromEventPattern(x => SignIn.TouchUpInside += x, x => SignIn.TouchUpInside -= x)
.Subscribe(args => ViewModel.ExecuteSignIn.Execute(null));
}
}
The properties UserEmail and Password are of type UITextField.
All works fine on the simulator, once I go to the real device I get the error message:
Set Method not found for 'Text' on the lines shown in bold above, any ideas?
Thanks for any clue(s),
Ivan.