I have a TWTRSearchTimelineViewController in my app that will run a search on the contents of a UITextField. This works the first time round but the I enter a new term it just shows the same data as before. Do you know where I could be going wrong?
Thanks
Here is my code:
func textFieldShouldReturn(textField: UITextField) -> Bool {
textField.resignFirstResponder()
searchTerm = searchField.text!
let stl = SearchTimelineViewController()
stl.dataSource = TWTRUserTimelineDataSource(screenName: "\(searchTerm)", APIClient: stl.client)
stl.refresh()
stl.tableView.reloadData()
return true
}