Loading

Thursday, June 17, 2010

Info Button Function

1--> Create a info button on XIB and Bind it with function
2--> Declare a BOOL Variable init with YES;
NOTE :- There is Three View in XIB
1-> self.View
2->RootView
3->Info_View


[UIView beginAnimations:nil context:nil];
if(Flip_Flag)
{
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
}
else
{
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
}
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(test)];
[UIView setAnimationDuration:.5];
if(Flip_Flag)
{
[Info_View removeFromSuperview];
[self.view addSubview:RootView];
Flip_Flag=NO;
}
else
{
[RootView removeFromSuperview];
[self.view addSubview:Info_View];
Flip_Flag=YES;
}
[UIView commitAnimations];

No comments:

Post a Comment