Swipe in from the left
CGRect R1,R2;
R1 = app.TestView. View. frame;
r2 = self . View. frame;
[app. TestView. View setframe: CGRectMake(r1.origin. Y, R1.size. Width, r1.size. Height)];
[UIView beginanimations:nil context:nil];
[UIView setanimationduration:0.4];
[App.window addsubview: [app. TestView View]];
[App Addconvertview]; Add occlusion layer
[ self Span class= "S4" >.view Setframe:cgrectmake (- 320.y,r2.size.width ,r2.size.height)];
[app. TestView. View setframe: CGRectMake(0, R1.origin. Y, R1.size. Width, r1.size. Height)];
[UIView commitanimations];
[Self performselector:@selector(removeself) withobject:Nil afterdelay:0.6];
Right slide out
CGRect r1,r2;
R1 = App. TestView. View. Frame;
r2 = self . View. frame;
[app. TestView. View setframe: CGRectMake(--, R1.origin. Y, r1.size. Width , r1.size. Height)];
[UIView beginanimations:nil context:nil];
[UIView setanimationduration:0.4];
[App. Window addsubview: [app]. TestView View];
[App Addconvertview]; Add occlusion layer
[Self. View setframe: CGRectMake(r2.origin. Y, R2.size. Width, r2.size. Height)];
[app. TestView. View setframe: CGRectMake(0, R1.origin. Y, r1.size. Width, R1.size. Height)];
[UIView commitanimations];
[ self Performselector: @selector (removeself) Withobject: Nil Afterdelay: 0.6]