Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>UITabBarController</code> kind of insists on grabbing the whole screen, so each tab will need to display its own instance of your title strip (At least, that's the path of least resistance. There are ways to force a single view to stay on top of all the tabs but they're more work.)</p> <p>Two basic approaches, one with a minor variation:</p> <ul> <li><p><code>UITabBarController</code> contains <em>n</em> <code>UINavigationController</code>s, each of which contains one of your VCs as its root view controller. Each of these has a <code>UINavigationItem</code> with a custom title view containing your logo. Using a <code>UINavigationController</code> purely for its titlebar-ness is a totally apple-encouraged pattern; and if they ever need to, your VCs will be able to do navigation pushes easily.</p></li> <li><p><code>UITabBarController</code> contains your VCs directly; then (as mentioned in the comment above) each of those contains a <code>UIToolbar</code> somewhere in its own nib layout, probably across the top. Populate it however you like, probably with a <code>UIBarButtonItem</code> with a custom view, surrounded with flexible space items if you want it centered. Good/bad feature: your logo is actually a button if you do it this way.</p></li> <li><p>Same as 2, but with a <code>UINavigationBar</code> laid out similarly. <code>UINavigationBar</code>s can be used "naked" without a <code>UINavigationController</code>. Shouldn't need to subclass it, just stuff a navigationItem with a custom title view in there. This gives you centering and a textual title for free if you want 'em, and avoids the button behavior.</p></li> </ul>
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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