I want to dynamically get the overall height of a uitableview, not a UITableViewCell , not a frame, and I find self.tableView.contentSize.height=0 for the first time, so I am really at a loss for this problem, I need help.
UITableViewCell
self.tableView.contentSize.height=0
thanks...
You can use the contentSize property for a UITableView, but you must first place the tableView first. Check this answer fooobar.com/questions/138195 / ...
self.tableView.contentSize.height is the right way to do this, but you need to load the table view before calling it, so put [tableView reloadData]; before calling self.tableView.contentSize.height [tableView reloadData]; .
self.tableView.contentSize.height
[tableView reloadData];
Source: https://habr.com/ru/post/1489035/More articles:Could not find class in Junit-4.11 - javaNested Repeaters in C # - asp.netHow to block some url in android browser? - androidAndroid web monitor development - androidRelativeLayout is updated after view.setVisibility (View.GONE) and view.setVisibility (View.VISIBLE) - javaHow to find application storage location programmatically in android - androidHow to close a file if I did not initialize it? - pythonCommon HttpClient Blocks for Asynchronous Requests - multithreadingUsing TelephonyManager to get SIM COUNTRY CODE code - How to do it? - javaTinyMCE does not return any value on first save - functionAll Articles