Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)flipAction:(id)sender
- {
- static BOOL toggle;
- [UIView beginAnimations:nil context:NULL];
- [UIView setAnimationDuration:kTransitionDuration];
- [mainView setAlpha:(toggle ? 1.0 : 0.0)];
- toggle = !toggle;
- [UIView commitAnimations];
- return;
- }
Add Comment
Please, Sign In to add comment