简体   繁体   中英

Does anyone know how to use UITableViewController to implement UISearchController in Xamarin.iOs without using StoryBoards?

I am trying to implement through a in Xamarin.iOs. 实现UISeachController。 I have created an XIB file in XCode and then have implemented the in the file. 文件中实现了

When I go back to the XCode designer view, I am unable to set the , which causes the application to throw an exception which says - ,这导致应用程序引发异常,该异常表示-

Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: -[UIViewController _loadViewFromNibNamed:bundle:] loaded the "SearchViewController" nib but the view outlet was not set.

Any help will be deeply appreciated.

Set the referencing outlet of main view in your SearchViewController

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM