回答

0

你可以试试这个曾经

[UIView transitionWithView:collectionView 
       duration:.5 
       options:UIViewAnimationOptionTransitionCurlUp 
      animations:^{ 

    //any animatable attribute here. 
    cell.frame = CGRectMake(3, 14, 100, 100); 
} completion:^(BOOL finished) { 
    //whatever you want to do upon completion 
}]; 
+0

由于病毒和桑托斯 – 2015-05-06 04:20:49

0

实现委托收集视图

- (UICollectionViewTransitionLayout *)collectionView:(UICollectionView *)collectionView 
         transitionLayoutForOldLayout:(UICollectionViewLayout *)fromLayout 
              newLayout:(UICollectionViewLayout *)toLayout 

,并使用IBAction为你的按钮改变高度和宽度值。

+0

好感谢复古 – 2015-05-06 04:21:23