Redimensionar Altura UICollectionView

Eu estou tentando redimensionar uma altura de UICollectionView, definindo-o como 0 quando o controlador de exibição é carregado e, em seguida, aumentando seu tamanho com uma animação quando um botão é pressionado. Eu tentei algumas coisas diferentes, mas isso não mudou de tamanho. Aqui estão todas as coisas diferentes que eu tentei mudar sua altura para 0:

CGRect bounds = [self.collectionView bounds];
[self.collectionView setBounds:CGRectMake(bounds.origin.x,
                                          bounds.origin.y,
                                          bounds.size.width,
                                          bounds.size.height - 100)];

....

CGRect frame = [self.collectionView frame];
[self.collectionView setFrame:CGRectMake(frame.origin.x,
                               frame.origin.y,
                               frame.size.width,
                               frame.size.height - 100)];

....

CGRect frame = self.collectionView.frame;
frame.size.height -= 100;
self.collectionView.frame = frame;

....

 self.collectionView.clipsToBounds = YES;
 self.collectionView.autoresizingMask = UIViewAutoresizingFlexibleHeight;

questionAnswers(2)

yourAnswerToTheQuestion