开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜