When the autocomplete tableView is showing with its autocomplete-suggestions and you rotate to landscape, the tableView won't redraw which leads to separator lines that only fill half of the screen width instead of the new screen width from landscape screen.
I wrote a quick workaround, exposing redrawTable in AutoCompleteTextField.swift:
func redrawTable() {
if let autoCompleteTableView = autoCompleteTableView,
let autoCompleteTableHeight = autoCompleteTableHeight {
var newFrame = autoCompleteTableView.frame
newFrame.size.height = autoCompleteTableHeight
let screenSize = UIScreen.mainScreen().bounds.size
newFrame.size.width = screenSize.width - (self.frame.origin.x * 2)
autoCompleteTableView.frame = newFrame
}
}
Then in your ViewController you can do sth like this:
When the autocomplete tableView is showing with its autocomplete-suggestions and you rotate to landscape, the tableView won't redraw which leads to separator lines that only fill half of the screen width instead of the new screen width from landscape screen.
I wrote a quick workaround, exposing redrawTable in AutoCompleteTextField.swift:
Then in your ViewController you can do sth like this: