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,207
  • 1
  • 14
  • 30

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
  • 4,058
  • 1
  • 29
  • 49