Wednesday, May 16, 2012

How to get Suck Effect in iOS

[UIView beginAnimations:@"suck" context:NULL];
[UIView setAnimationTransition:103 
                 forView:myViewContainer cache:YES];
[UIView setAnimationPosition:CGPointMake(12, 345)];
[myView removeFromSuperview];
[UIView commitAnimations]; 
 

 /*setAnimationTransition:103, it invokes suck effect.*/

For reference:
http://www.iphonedevwiki.net/index.php?title=UIViewAnimationState

No comments:

Create a list in SwiftUI with sticky section headers

 Sample Code import SwiftUI struct ContentView : View {     @State var isCustomViewControllerDisplayed = false     @State private va...