我有UIViewController
,內部使用UICollectionViewController
和單鍵,我想要改變UICollectionViewControllerCell
當點擊按鈕,如高度和寬度。點擊按鈕UICollectionViewCell寬度和高度變化
3
A
回答
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
實現委託收集視圖
- (UICollectionViewTransitionLayout *)collectionView:(UICollectionView *)collectionView
transitionLayoutForOldLayout:(UICollectionViewLayout *)fromLayout
newLayout:(UICollectionViewLayout *)toLayout
,並使用IBAction爲你的按鈕改變高度和寬度值。
+0
好感謝復古 – 2015-05-06 04:21:23
相關問題
- 1. UICollectionViewCell寬度和高度0
- 2. 按鈕寬度,高度
- 3. tkinter按鈕的高度和寬度
- 4. 按鈕寬度和高度不正確
- 5. 變化寬度/高度
- 6. ImageView比例和寬度/高度變化
- 7. 變化MagnifierGlass高度和寬度
- 8. 視覺格式化語言,按鈕寬度和高度約束
- 9. jscrollpane jquery按鈕來改變高度和寬度
- 10. 定位按鈕居中以改變寬度和高度flex
- 11. 爲什麼點擊標籤後寬度和高度發生了變化?
- 12. 單元格上UI按鈕的高度和寬度發生變化Click
- 13. 點擊IE11輸入寬度變化
- 14. Css鏈接寬度變化點擊
- 15. 設置按鈕的高度與寬度
- 16. 如果點擊iframe高度變化
- 17. UICollectionViewCell的子視圖的寬度和高度爲零
- 18. UICollectionViewCell動態的寬度和高度固定
- 19. 斯威夫特給予uicollectionviewcell寬度和動態高度
- 20. 我想改變文本框的寬度動態按鈕點擊
- 21. 寬度和高度
- 22. 高度和寬度
- 23. 變化浮點值寬度
- 24. 設置按鈕高度等於按鈕寬度
- 25. Android - 按鈕高度不變
- 26. 修復節點寬度和高度Spacetree
- 27. 原點,寬度,高度
- 28. 如何通過單擊按鈕使div增加寬度和高度?
- 29. Iframe寬度和高度不會改變
- 30. html textlabel的高度和寬度不變
由於病毒和桑托斯 – 2015-05-06 04:20:49