Closed aotian16 closed 9 years ago
@aotian16 i did not provide autoCompleteCellWidth. The cell width will be based on the tableview width, (notice that there is no delegate method that is called widthForRow:atIndexPath
as oppose to heightForRow:atIndexPath
) and in this library, the tableview is ALWAYS the same width as the textfield.
Thanks for your comment. But in my project, the tableview is the same width as the screen width, not as the textfield. The textfield i use is about half width of screen width.
I fix this in setupTableView method
source like this
let tableView = UITableView(frame: CGRectMake(self.frame.origin.x, self.frame.origin.y + CGRectGetHeight(self.frame), CGRectGetWidth(self.frame), autoCompleteTableHeight))
See v1.0.1
I can set height with autoCompleteCellHeight, but i can't set width. It's seem that there is no autoCompleteCellWidth?