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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -