TableView not taking in account absolute position of TextField

In some cases position of UIAutocompleteView was calculated incorrectly: in case when UITextField was located inside another View (so, not directly in view of ViewController).

In my projects I'm using UITextField as a header view of UITableView, so it's located like this:

UIView -> UITableView -> UIView -> UITextField