Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目添加了一个按下按钮的 UIView。将子视图添加到视图时是否可以获得仪表板涟漪效应?也可以关闭子视图:removeFromSuperview。如何获得仪表板小部件的关闭效果(当您按下 x 时)。
removeFromSuperview
警告:涟漪效应未记录在案,因此您无法在 AppStore 中使用它。
从 3.1.2 开始,您可以使用波纹过渡效果
[UIView beginAnimations:@"transition" context:NULL]; [UIView setAnimationTransition:110 forView:myViewContainer cache:YES]; // add subview here. [UIView commitAnimations];