mvvm - How to bind button click commands in ReactiveUI for iOS -


i'm trying learn reactiveui xamarin.ios project , i'm stuck on should simple task. unable bind button click reactivecommand in same way can in companion xamarin.android project. here android code works fine:

this.bindcommand (viewmodel, x => x.clickme, view => view._button);

here same pattern used in ios:

this.bindcommand (viewmodel, x => x.clickme, view => view.getforecastbutton);

however, in ios following warning:

"couldn't find command binder monotouch.uikit.uibutton"

does know i'm doing wrong? astonishing thing i've looked dozens of reactiveui ios examples , still haven't found 1 has single button in app. show text bound property or show uitableview collection in viewmodel. i'm sure there more complete ios example out there , if knows of 1 please include in answer. many thanks.

you're doing correctly, believe you're being trolled xamarin.ios bug affects reactiveui, type.gettype won't load assemblies. paste appdelegate:

https://github.com/paulcbetts/starter-mobile/blob/master/starter-ios/appdelegate.cs#l35

        // nb: grosshackalerttiem™:         //         // monotouch appears not load assemblies when request them          // via type.gettype, unlike every other platform (even          // xamarin.android). so, we've got manually rxui ,          // akavache         var r = rxapp.mutableresolver;         (new reactiveui.cocoa.registrations()).register((f,t) => r.register(f, t));         (new reactiveui.mobile.registrations()).register((f,t) => r.register(f, t)); 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -