MonoTouch SIGSEGV crash using navigationcontroller and searchdisplaycontroller

后端 未结 1 438
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 05:43

In the MonoTouch simulator I am getting random crashes with the following diagnostic:

/tmp/mono-gdb-commands.FV1b8V:1: Error in sourced command file:
unable          


        
相关标签:
1条回答
  • 2020-12-20 06:34

    Adding this in your FromTableController seems to fix the problem:

    protected override void Dispose (bool disposing)
    {
        searchController.SearchResultsSource = null;
        searchController.Delegate = null;
        base.Dispose (disposing);
    }
    

    Solution was inspired by this: How can UISearchDisplayController autorelease cause crash in a different view controller?

    0 讨论(0)
提交回复
热议问题