Note that there are some explanatory texts on larger screens.

plurals
  1. PONavigationController with search, map and table: how to
    primarykey
    data
    text
    <p>Since I am a newbie in iPhone development, I need some advice on how to structure my xib file in order to get the following (essentially, it should be very similar to <strong>Google Places</strong> app).</p> <p>I need a <strong>NavigationController</strong> with:</p> <ul> <li><strong>Map</strong> with <strong>search</strong> functionality.</li> <li><strong>TableView</strong> with <strong>search</strong> functionality (ideally, the search should be shared between map and TableView).</li> <li>One view to show details of a selected item, whatever the source view is (map or table).</li> <li>Map view should have a button to show listing view, and viceversa.</li> </ul> <p>My doubt is, what do I have to nest where? I have a <strong>NavigationController</strong> with its <strong>View Controller</strong> set to another class with its own xib, but I don't know how to go on. </p> <p>Should I create a View with a search bar and another SubView to switch between Map and Table? Or is it better to have two full views each one with its own search bar?</p> <p><strong>EDIT 1</strong></p> <p>Finally I have decided to implement the following structure:</p> <pre><code> - TabBarController - LugaresNavController (UINavigationController) - LugaresViewController (UIViewController) - UISearch - SubView (UIView) - MapViewController (UIViewController) - TableViewController (UITableViewController) </code></pre> <p><code>MapViewController</code> and <code>TableViewController</code> have their own <strong>xib</strong> files. What I want is to have the ability to switch between them into <code>SubView</code>, but I am not able to do it. </p> <p>I have assigned <code>MapViewController</code> and <code>TableViewController</code> file's owner to their respective class in the xib files, and also have specified which xib to load at the attributes of their representation in the xib corresponding to <code>LugaresViewController</code>, which is their parent. </p> <p>When I run the application, all I can see is the TabBar with the NavBar and the UISearch. The frame where <code>SubView</code> should render either the map or the table is showing blank...</p> <p>What am I doing wrong here?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload