Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Two UILabels under each other, hide the top one
  2. CGRect secondFrame = secondLabel.frame;
  3. secondLabel.hidden = YES;
  4. thirdLabel.frame = secondFrame;
  5.        
  6. [UIView animateWithDuration:0.3
  7.                  animations:^{label1.alpha = 0;
  8.                               label2.frame = label1.frame}
  9.                  completion:NULL];