Created
February 14, 2016 06:54
-
-
Save Jamonek/5402a03e458a19b7b464 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// TabController.swift | |
// School For Me | |
// | |
// Created by Jamone Alexander Kelly on 2/14/16. | |
// Copyright © 2016 Jamone Kelly. All rights reserved. | |
// | |
import UIKit | |
import FontAwesomeKit | |
class TabController: UITabBarController { | |
// MARK: Lifecycle | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
if let tabs: [UITabBarItem] = self.tabBar.items { | |
let k12: UITabBarItem = tabs[0] as UITabBarItem | |
let college: UITabBarItem = tabs[1] as UITabBarItem | |
let saved: UITabBarItem = tabs[2] as UITabBarItem | |
// MARK: Tab Bar Titles | |
k12.title = Localizable("K-12") | |
college.title = Localizable("Colleges") | |
saved.title = Localizable("Saved") | |
// MARK: Tab Bar Images | |
k12.image = FAKFontAwesome.graduationCapIconWithSize(25).imageWithSize(CGSize(width: 25, height: 25))! | |
college.image = FAKFontAwesome.universityIconWithSize(25).imageWithSize(CGSize(width: 25, height: 25))! | |
saved.image = FAKFontAwesome.listAltIconWithSize(25).imageWithSize(CGSize(width: 25, height: 25))! | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment