I am trying to get the contentSize of tableView in viewWillAppear method,but it is coming wrong , when I get the contenSize in ViewDidAppear it is coming correct. How to get the correct contentSize or why this is happening I am getting the table frame correctly in viewDidLayoutSubView but table contentSize is not corret?
Asked
Active
Viewed 609 times
0
-
Getting wrong content size in didlayoutSubView as well. – Aashish Nagar Feb 25 '17 at 09:41
-
This is not duplicate, go to the link and see that question is regarding frame not content offest – Aashish Nagar Feb 25 '17 at 09:52
-
This is releated to contentSize not frame. – Aashish Nagar Feb 25 '17 at 14:14
1 Answers
0
The problem is that in viewWillAppear
you don't have the right frames of your UI yet. The right frames are in the did appear.

Marco Santarossa
- 4,058
- 1
- 29
- 49
-
I want to scroll the table to display the last cell in view will appear. How to do that ?? – Aashish Nagar Feb 25 '17 at 11:51