[英]Does anyone know how to use UITableViewController to implement UISearchController in Xamarin.iOs without using StoryBoards?
I am trying to implement UISeachController through a
UITableViewController in Xamarin.iOs.
我正在尝试通过Xamarin.iOs中的
UITableViewController实现UISeachController。 I have created an XIB file in XCode and then have implemented the
UITableViewController in the
.cs file.
我已经在XCode中创建了一个XIB文件,然后在.cs文件中实现了
UITableViewController 。
When I go back to the XCode designer view, I am unable to set the File Owner View Outlet , which causes the application to throw an exception which says -
回到XCode设计器视图时,无法设置File Owner View Outlet ,这导致应用程序引发异常,该异常表示-
Objective-C exception thrown. 抛出Objective-C异常。 Name: NSInternalInconsistencyException Reason: -[UIViewController _loadViewFromNibNamed:bundle:] loaded the "SearchViewController" nib but the view outlet was not set.
名称:NSInternalInconsistencyException原因:-[UIViewController _loadViewFromNibNamed:bundle:]加载了“ SearchViewController”笔尖,但未设置视图出口。
Any help will be deeply appreciated. 任何帮助将不胜感激。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.