         tweetsTableView.rowHeight = UITableViewAutomaticDimension
         setTweetyNavBar()
         fetchTweets()
+
+        refreshControl.addTarget(self, action: "refreshControlAction:", forControlEvents: UIControlEvents.ValueChanged)
+        tweetsTableView.insertSubview(refreshControl, atIndex: 0)
     }
     
     func setTweetyNavBar(){

        }
    }
    

    /*
    // MARK: - Navigation

        }else{
            print("ERROR OCCURED: \(error)")
        }
        if refreshControl.refreshing{
            refreshControl.endRefreshing()
        }
    }
    
    //Segue into Detail View
