ios9 UICollectionView issue, after rotating

251 Views Asked by At

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

1

There are 1 best solutions below

0
On

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.