1

When I rotating my device (landscape or portrain), screen is half black. But when collectionView is empty (no cells), or It has few cells, all is ok. How can I fix this problem?

enter image description here

quba88
  • 174
  • 4
  • 18

1 Answers1

0

I found problem and workaround. The problem is in the method:

-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

I removed this method and now work fine.

quba88
  • 174
  • 4
  • 18