ref1view.hidden = NO;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.25f];
[ref1view setAlpha:([ref1view alpha] == 1.0f) ? 0.0f : 1.0f];
[UIView commitAnimations];
Can someone explain to me how this works? In particular, this line:
[ref1view setAlpha:([ref1view alpha] == 1.0f) ? 0.0f : 1.0f];
It seems that this function will animate alpha from 0-1 and backward from 1-0, and I just don't understand the syntax. Thank!
source
share