2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Storyboardを分割してもInterfaceBuilderでNavigationBarが表示されるようにする

Last updated at Posted at 2018-10-21

この記事の内容は、Xcode 10で動作を確認しました。

@ichimotsさんからコメントでちゃんとした対処方法を教えてもらいました。

Storybard Referenceを使ってStoryboardを分割したけど、InterfaceBuilderでNavigatonBarが表示されないから、InterfaceBuilderを使ってNavigationBarにボタンを追加したりできない。Storyboard内にダミーのNavigationControllerを用意することでInterfaceBuilderでNavigationBarが編集できるようになります。

InterfaceBuilderには、NavigationBarの表示を明示的に有効にする機能が存在しています。
https://qiita.com/azechi/items/4c53af6ed7a80161c5f6#comment-1c1f74d7a5bc58370877

2
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?