iphone - calling [tableView reloadData] reverts frame change -
i have uitableview
inside uiview
inside uiviewcontroller
in app.
above uitableview
, have uisearchbar
filters uitableview
. not want use conventional uisearchbar
custom app.
i subscribing notifications when keyboard appears , disappears, , resizing uitableview
accordingly. problem having search, , filter uitableview
, call:
[self.tableview reloaddata];
to display filtered results only. problem is, the uitableview resizes original height, hiding few cells behind keyboard still.
can clue me in on how change behavior?
this sounds might auto layout problem -- these show after action causes view redraw itself. if you're using auto layout, should resize table view (or containing view) adjusting constraints, not setting frame. 1 way make iboutlet constraint bottom of view, , modify constant in code.
Comments
Post a Comment