             
             // Add UISearchController to the tableView
             tableView.tableHeaderView = searchController?.searchBar
-            tableView.tableHeaderView?.backgroundColor = UIColor.clearColor()
+            tableView.tableHeaderView?.backgroundColor = UIColor.clear
             definesPresentationContext = true
             searchController.hidesNavigationBarDuringPresentation = false
             
             // Style the UISearchController
-            searchController.searchBar.barTintColor = UIColor.clearColor()
-            searchController.searchBar.tintColor = UIColor.whiteColor()
+            searchController.searchBar.barTintColor = UIColor.clear
+            searchController.searchBar.tintColor = UIColor.white
             
             // Hide the UISearchController
             tableView.setContentOffset(CGPoint(x: 0.0, y: searchController.searchBar.frame.size.height), animated: false)
             
             // Set a black keyborad for UISearchController's TextField
-            let searchTextField = searchController.searchBar.valueForKey("_searchField") as! UITextField
-            searchTextField.keyboardAppearance = UIKeyboardAppearance.Dark
+            let searchTextField = searchController.searchBar.value(forKey: "_searchField") as! UITextField
+            searchTextField.keyboardAppearance = UIKeyboardAppearance.dark
         }
 
     }

extension StationsViewController: UITableViewDataSource {
    
    // MARK: - Table view data source
    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
        return 88
    }
    
    func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 1
    }
    
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        
        // The UISeachController is active
        if searchController.active {
            return searchedStations.count
            
        // The UISeachController is not active

    func loadStationsFromJSON() {
        
        // Turn on network indicator in status bar
        UIApplication.shared.isNetworkActivityIndicatorVisible = true
        
        // Get the Radio Stations
        DataManager.getStationDataWithSuccess() { (data) in
            
            if kDebugLog { print("Stations JSON Found") }
            
            let json = JSON(data: data! as Data)
            
            if let stationArray = json["station"].array {
                
                for stationJSON in stationArray {
                    let station = RadioStation.parseStation(stationJSON: stationJSON)
                    self.stations.append(station)
                }
                
                // stations array populated, update table on main queue
                DispatchQueue.main.async(execute: {
                    self.tableView.reloadData()
                    self.view.setNeedsDisplay()
                })
                
            } else {
                if kDebugLog { print("JSON Station Loading Error") }
            }
            
            // Turn off network indicator in status bar
            UIApplication.shared.isNetworkActivityIndicatorVisible = false
        }
    }
    
