开发者

How to get the "dashboard" ripple-effect and closing-effect for UIViews?

开发者 https://www.devze.com 2022-12-19 00:26 出处:网络
My project add a UIView with a button press. Is it possible to get the dashboard ripple-effect when the subview is added to the view?

My project add a UIView with a button press. Is it possible to get the dashboard ripple-effect when the subview is added to the view? Al开发者_运维技巧so the subview can be closed with: removeFromSuperview. How can I get the closing effect of a dashboard widget (when you press on the x).


Warning: The ripple effect is undocumented so you can't use it in AppStore.


As of 3.1.2, you can use a ripple transition effect with

[UIView beginAnimations:@"transition" context:NULL];
[UIView setAnimationTransition:110 forView:myViewContainer cache:YES];
// add subview here.
[UIView commitAnimations];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号