###発生している問題・エラーメッセージ
初期表示でアイコンを表示させたい。
###該当のソースコード
import UIKit import Font_Awesome_Swift class TabBatViewController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() // フォント設定 tabBarController?.tabBar.items?.first?.setFAIcon(icon: .FATwitter, size: nil, textColor: .red, backgroundColor: .black, selectedTextColor: .yellow, selectedBackgroundColor: .white) // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destinationViewController. // Pass the selected object to the new view controller. } */ }
###試したこと
何も起こらない。
下記がスクショです。想定では、.FATwitterが表示されるはずでした。
二つ目、三つ目のアイコン設定もご教授いただければと思います。
よろしくお願いします。
###補足情報(言語/FW/ツール等のバージョンなど)
swift3.0
iphone7 plus
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/10 21:23