0

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?

Aashish Nagar
  • 1,167
  • 1
  • 11
  • 27

1 Answers1

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
  • 3,973
  • 1
  • 26
  • 47