Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/96.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios MvvmCross Monotouch应用程序在首次显示MvxDialogController时冻结_Ios_Xamarin.ios_Mvvmcross - Fatal编程技术网

Ios MvvmCross Monotouch应用程序在首次显示MvxDialogController时冻结

Ios MvvmCross Monotouch应用程序在首次显示MvxDialogController时冻结,ios,xamarin.ios,mvvmcross,Ios,Xamarin.ios,Mvvmcross,我使用tabbarcontroller作为主导航控制器,其中有一些MvxDialogController,特别是用于搜索输入的 第一次渲染搜索视图时,它会冻结1或2秒 我还有两个相同类型的视图,第一次都冻结了。绑定定义中是否存在问题 这就是我的基本情况 public override void ViewDidLoad () { base.ViewDidLoad (); View.UserInteractionEnabled = true;

我使用tabbarcontroller作为主导航控制器,其中有一些MvxDialogController,特别是用于搜索输入的 第一次渲染搜索视图时,它会冻结1或2秒

我还有两个相同类型的视图,第一次都冻结了。绑定定义中是否存在问题

这就是我的基本情况

    public override void ViewDidLoad ()
    {
        base.ViewDidLoad ();

        View.UserInteractionEnabled = true;
        var bindings = this.CreateInlineBindingTarget<SearchViewModel> ();

        Root = new RootElement ("Search", new RadioGroup ("WhistleType", 0)) {

            new Section () {
                new EntryElement (string.Empty, "inputX")
                    .Bind (bindings, e=> e.Value, vm => vm.Name),
                new EntryElement (string.Empty, "inputY")
                    .Bind (bindings, vm => vm.InputY)
            },

            new Section () {
                new RadioElement ("RadioX")
                    .Bind (bindings, r => r.SelectedCommand, vm => vm.SelectXCommand),
                new RadioElement ("RadioY")
                    .Bind (bindings, r => r.SelectedCommand, vm => vm.SelectYCommand),
            },
         };
        btnGo = new UIBarButtonItem (UIBarButtonSystemItem.Done);

        this.NavigationItem.RightBarButtonItem = this.btnGo;
        var set = this.CreateBindingSet<SearchView,SearchViewModel> ();
        set.Bind (btnGo).To (vm => vm.SearchCommand);


        Root.TableView.UserInteractionEnabled = true;
   }

如果应用程序冻结,它将阻塞UI线程-此视图或ViewModel中是否存在任何可能阻塞的内容?你能在调试器里检查一下吗?实际上我用的是iPhone4S。切换到Iphone 5s后,导航更加顺畅。。模拟器也很平滑。除此之外,我注意到,在OSX Xamarin上使用调试器时,我无法跨过PCL内部,在Visual Studio上调试monotouch时有时会失败。。