Skip to content

Instantly share code, notes, and snippets.

@Jamonek
Created February 14, 2016 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jamonek/5402a03e458a19b7b464 to your computer and use it in GitHub Desktop.
Save Jamonek/5402a03e458a19b7b464 to your computer and use it in GitHub Desktop.
//
// 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