ios9 UICollectionView issue, after rotating

217 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 answers

0
quba88 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.