See, created a table from an array (based on tableviewcontroller), added a search - everything works, but I just can’t add a return button to the previous view. The problem is that in storyboard xcode it is possible to insert either a navbar (there you can insert a back button) or a searchbar. And how do I insert both? enter image description here

    3 answers 3

    Put the UINavigationController and drag ctrl-drag-drop from it to your UITableViewController and select rootViewController.

    • then if I click on the search box, the error Terminating app due to uncaught exception crashes, reason: "I couldn’t have to go on the search engine" - Goshka Tarasov

    Here in this guide is very clearly explained https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/SecondTutorial.html#//apple_ref/doc/uid/TP40011343-CH8-SW1

    Add another Nav, for example at the bottom of the storyboard.

      In Storyboard, click on ViewController (from which you represent the TableViewController). Then Editor -> Embed in -> NavigationController. And set the NavigationController as Is Initial View Controller.

      If you only have a TableViewController in the Storyboard, do the same, only with it.

      unable to find a cell with an identifier

      Not properly register the cell identifier. Look here https://stackoverflow.com/a/12737966/3868736