NavigationBarのタイトルにアイコンを追加する方法
追記
バグがあったので、続きを書きました。
http://qiita.com/nakaken0629/items/fe729ba1ee34a2d8f7ee
本文
UIViewControllerのタイトルは、navigationItem.titleではなくnavigationItem.titleViewで指定する。
titleViewプロパティには、以下の構造のViewを追加する
UIView
+-- UILabel
+-- UIImageView
追加したViewの自動レイアウトをうまいこと設定する。
ソースコードはこちら
https://github.com/nakaken0629/CustomNavigationBar/tree/20151019
Author And Source
この問題について(NavigationBarのタイトルにアイコンを追加する方法), 我々は、より多くの情報をここで見つけました https://qiita.com/nakaken0629/items/c43e311c530dba38f281著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .