ios - How do I do the UISearchDisplayController's tableView to use the prototype cell defined for the regular tableView -


I have a table view controller with a search bar and a search deputy controller.

A prototype cell defined on the table view storyboard of that main tableview controller.

I'm crashing on the line

  FileManagerTableViewCell * cell = (FileManagerTableViewCell *) [tableView dequeueReusableCellWithIdentifier: cellIdentifier];   

When the search table view is going to appear. Apparently the search table can not reach prototype cells defined on the main table on the View Storyboard.

How do I obtain a search table view for the prototype cell defined for the main tableview on the storyboard?

If you want to use both tables in the same cell, you will see a xib file instead of the storyboard In that room should be designed. Register both tables, using registerNib: forCellReuseIdentifier: .

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -