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

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 24  |  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. UIScrollView not updating
  2. - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation      duration:(NSTimeInterval)duration {
  3.     int i = 0;
  4.     for(UIView *subview in [scroll subviews]) {
  5.         if([subview isKindOfClass:[GalleryThumbContainerView class]]) {
  6.             [subview setFrame:[self getFrameLandscape:i]];
  7.             i++;
  8.         } else {
  9.         }
  10.     }
  11. }
  12.        
  13. [self.view setNeedsDisplay];
  14. [self.view setNeedsLayout];
  15. [self.scroll setNeedsDisplay];
  16. [self.scroll setNeedsLayout];