Navigation Bars
https://developer.apple.com/design/human-interface-guidelines/ios/bars/navigation-bars/
Navigation Bars
ナビゲーションバー
A navigation bar appears at the top of an app screen, below the status bar, and enables navigation through a series of hierarchical screens. When a new screen is displayed, a back button, often labeled with the title of the previous screen, appears on the left side of the bar. Sometimes, the right side of a navigation bar contains a control, like an Edit or a Done button, for managing the content within the active view. In a split view, a navigation bar may appear in a single pane of the split view. Navigation bars are translucent, may have a background tint, and can be configured to hide when the keyboard is onscreen, a gesture occurs, or a view resizes.
ナビゲーションバーは、ステータスバーの下、アプリケーション画面内の上部に表示され、一連の階層画面をナビゲートできます。 新しい画面が表示されると、バーの左側に、前の画面のタイトルが付いた戻るボタンが表示されます。 ナビゲーションバーの右側には、アクティブビュー内のコンテンツを管理するための編集ボタンまたは完了ボタンのようなコントロールが含まれていることがあります。 分割ビューでは、分割ビューの片方のペインのみにナビゲーションバーが表示されることがあります。 ナビゲーションバーは半透明で、背景の色の影響され、キーボードが画面に表示されているとき、ジェスチャが発生したとき、またはビューのサイズが変更されたときに非表示になるように設定できます。
Consider temporarily hiding the navigation bar when displaying full-screen content. The navigation bar can be distracting when you want to focus on content. Temporarily hide the bar to provide a more immersive experience. Photos hides the navigation bar and other interface elements when viewing full-screen photos. If you implement this type of behavior, let users restore the navigation bar with a simple gesture, like a tap.
フルスクリーンのコンテンツを表示するときは、ナビゲーションバーを一時的に隠すことを検討してください。 ナビゲーションバーは、コンテンツに集中したいときに気を散らすことがあります。 一時的にバーを非表示にして、より没入感のある体験を提供します。 写真は、フルスクリーンの写真を表示するときに、ナビゲーションバーやその他のインターフェイス要素を隠します。 このような振る舞いを実装する場合、ユーザは、タップのような簡単なジェスチャでナビゲーションバーを復元できるようにします。
For developer guidance, see UINavigationBar.
TIPUse a toolbar when navigation isn’t needed or you want multiple controls for managing content. See Toolbars.
ナビゲーションが不要な場合やコンテンツを管理するための複数のコントロールが必要な場合は、ツールバーを使用します。 ツールバーを参照してください。
Navigation Bar Titles
ナビゲーションバータイトル
Consider showing the title of the current view in the navigation bar. In most cases, a title helps people understand what they’re looking at. However, if titling a navigation bar seems redundant, you can leave the title empty. For example, Notes doesn’t title the current note because the first line of content supplies all the context needed.
ナビゲーションバーに現在のビューのタイトルを表示することを検討してください。 ほとんどの場合、タイトルは人々が見ているものを理解するのに役立ちます。 ただし、タイトルバーが重複しているように見える場合は、タイトルを空白のままにしておくことができます。 たとえば、最初のコンテンツ・ラインが必要なすべてのコンテキストを提供しているため、Notesは現在のnoteのタイトルにはなりません。
Use a large title when you need to provide extra emphasis on context. In some apps, the big, bold text of a large title can help orient people as they browse and search. In a tabbed layout, for example, large titles can help clarify the active tab and inform the user when they've scrolled to the top. Phone uses this approach, while Music uses large titles to differentiate content areas like albums, artists, playlists, and radio. A large title transitions to a standard title as the user begins scrolling content. Large titles don't make sense in all apps and should never compete with content. Although the Clock app has a tabbed layout, large titles are unnecessary because each tab has a distinct, recognizable layout. For developer guidance, see prefersLargeTitles.
コンテキストに重点を置く必要がある場合は、大きなタイトルを使用してください。 一部のアプリでは、大きなタイトルの大胆なテキストが、ユーザーが閲覧して検索する際の方向付けに役立ちます。 たとえば、タブ付きのレイアウトでは、大きなタイトルはアクティブなタブを明確にし、ユーザーがトップにスクロールしたことを知らせます。 電話ではこの方法が使用されますが、Musicでは大きなタイトルを使用してアルバム、アーティスト、プレイリスト、ラジオなどのコンテンツ領域を区別します。 ユーザーがコンテンツをスクロールし始めると、大きなタイトルが標準タイトルに移行します。 大きなタイトルは必ずしもすべてのアプリで有意義では無いので、決してコンテンツと競合するべきではありません。 時計アプリにはタブ付きレイアウトがありますが、各タブには明確で認識可能なレイアウトがなされているため、大きなタイトルは不要です。 デベロッパー向けのガイダンスについては、大サイズのタイトルをご覧ください。
Navigation Bar Controls
ナビゲーションバーのコントロール
Avoid crowding a navigation bar with too many controls. In general, a navigation bar should contain no more than the view’s current title, a back button, and one control that manages the view’s contents. If you use a segmented control in the navigation bar, the bar shouldn’t include a title or any controls other than the segmented control.
あまりにも多くのコントロールでナビゲーションバーを混雑させないでください。 一般に、ナビゲーションバーには、ビューの現在のタイトル、戻るボタン、およびビューのコンテンツを管理するコントロールを1つ以上含む必要があります。 ナビゲーションバーでセグメント化されたコントロールを使用する場合、バーには、タイトルまたはセグメント化されたコントロール以外のコントロールは含まれていないはずです。
Use the standard back button. People know that the standard back button lets them retrace steps through a hierarchy of information. However, if you implement a custom back button, make sure it still looks like a back button, behaves intuitively, matches the rest of your interface, and is consistently implemented throughout your app. If you replace the system-provided back button chevron with a custom image, supply a custom mask image too. iOS uses this mask to animate the button title during transitions.
標準の戻るボタンを使用します。 標準の戻るボタンを使用すると、情報の階層を辿ることができます。 ただし、カスタムの戻るボタンを実装する場合は、それがバックボタンのように見え、直感的に動作し、他のインターフェイスと一致し、アプリケーション全体で一貫して実装されていることを確認してください。 システム提供のバックボタンシェブロンをカスタムイメージに置き換える場合は、カスタムマスクイメージも指定します。 iOSはこのマスクを使用してトランジション中にボタンのタイトルをアニメートします。
Don’t include multisegment breadcrumb paths. The back button always performs a single action—returning to the previous screen. If you think people might get lost without the full path to the current screen, consider flattening your app’s hierarchy.
マルチセグメントのブレッドクラムパス(パンくずナビ)は含めないでください。 戻るボタンは常に1つのアクションを実行し、前の画面に戻ります。 現在の画面への完全な経路がなくても人々が迷子になる可能性がある場合は、アプリの階層を平坦化することを検討してください。
Give text-titled buttons enough room. If your navigation bar includes multiple text buttons, the text of those buttons may appear to run together, making the buttons indistinguishable. Add separation by inserting a fixed space item between the buttons. For developer guidance, see the UIBarButtonSystemItemFixedSpace constant value in UIBarButtonItem.
テキストの付いたボタンに十分なスペースを与えてください。 ナビゲーションバーに複数のテキストボタンが含まれている場合、それらのボタンのテキストがくっついて見え、ボタンが区別できなくなります。 ボタンの間に固定スペース項目を挿入して区切りを追加します。 開発者ガイダンスについては、UIBarButtonItemのUIBarButtonSystemItemFixedSpace定数値を参照してください。
Consider using a segmented control in a navigation bar to flatten your app's information hierarchy. If you use a segmented control in a navigation bar, do so only at the top level of your hierarchy and be sure to choose accurate back-button titles at lower levels. For additional guidance, see Segmented Controls.
ナビゲーションバーのsegmented controlを使用して、アプリの情報階層を平坦化することを検討してください。 ナビゲーションバーでsegmented controlを使用する場合は、階層の最上位レベルでのみ行い、下位レベルでは正確なバックボタンタイトルを選択してください。 くわしくは、Sgmented Controlsを参照してください。