0
之间改变时,我有2次,其具有相同的尺寸,具有colourPreview设置为self.view的子视图。这是我用于显示动画的代码:UIViews不动画彼此
-(void)startEditingHexLabel {
[UIView animateWithDuration:0.3
animations:^{
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:hexTextView cache:YES];
[colourPreview removeFromSuperview];
[self.view addSubview:hexTextView];
[self.view sendSubviewToBack:colourPreview];
}
completion:^(BOOL finished){
[hexText becomeFirstResponder];
}];
}
但它只是更改为新视图而没有转换。有任何想法吗?