[英]UICollectionView top cells disappear while animating keyboard appearance
[英]Animating UICollectionView,but cells disappear
我的代码是这样的
[UIView animateWithDuration:0.1 animations:^
{
[ccController.collectionView setFrame:CGRectMake(0, 0, self.view.frame.size.width, 0)];
} completion:^(BOOL finished){
[_selectTabV setHidden:YES];
}];
动画尚未结束时,单元立即消失。 为什么? 如何让单元格消失跟随集合视图动画? 谢谢 !
调用[ccController.collectionView layoutIfNeeded];
在动画块之前。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.