Sunday, 10 November 2019

iOS part of tableview goes black when orientation changes

When I change tableview orientation , part of the screen goes blank at the bottom.

Steps to reproduce:

  • Have tableview in a view controller
  • Push a new viewcontroller during an action
  • Rotate the screen from Portrait landscape.
  • Press back button to pop the current viewcontroller
  • Now rotate the view controller from landscape to portrait.

The bottom part of tableview goes black.

I couldn't reproduce this always but I was able to reproduce this twice in 50 attempts.

FYI:

My Viewcontroller has only tableview that's all and all cells has autolayout constraints. Trying to understand why it happened and I would like to fix it.

I am able to get the issue 6 out of 10 attempts in iOS 12.4 ipad air 2019


Update:

Please find the images below

(Portrait screenshot. I morphed it with purple color for privacy. The dark color is the bug that I'm talking about) enter image description here

(Landscape screenshot. I morphed it with purple color for privacy. The dark color is the bug that I'm talking about) enter image description here



from iOS part of tableview goes black when orientation changes

No comments:

Post a Comment