回答

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