title: UIScrollView remove subview animated
body: <p>What I have:
  Basically I have collection of UIViews presented in horizontal scrollView. UIScrollView have paging enabled and each item is not full screen so I can see part of previous and next view <a href="http://blog.proculo.de/archives/180-Paging-enabled-UIScrollView-With-Previews.html" rel="nofollow">based on this.</a>
  Each view have delete button on itself.</p>
  
  <p>What I need:
  I need to find good idea to animate reloading UIScrollView content after removing one of the subview. As I thought about it there will be 4 different kinds of deletion:
  1. deletion of last view
  2. deletion of first view
  3. deletion of middle view - hardest one
  4. deletion of only view - easiest one, just animation of view disappearing</p>
  
  <p>I need some suggestions/solutions.
  Thanks,
  Michal</p>
  
  <p>edit:</p>
  
  <p>Ok, I havent implemented it fully.</p>
  
  <p>Here is reload method:</p>
  
  <pre><code>- (void)loadScrollView{
  for(UIView* view in [_scrollView subviews])
  {
      [view removeFromSuperview];
  }
  
  CGRect frame = self.scrollView.frame;
  frame.origin.x = 0;
  frame.origin.y = 0;
  int i = 0;
  
  _scrollView.clipsToBounds = NO;
  _scrollView.pagingEnabled = YES;
  _scrollView.showsHorizontalScrollIndicator = NO;
  
  for(MPContact* contact in self.items)
  {
      frame.origin.x = self.scrollView.frame.size.width*i;
      MyView *view = [[[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil] objectAtIndex:0];
      [view setFrame:frame];
  
      i++;
      [view.nameAndSurnameLabel setText:@"view text"];
      [view setDelegate:self];
      [self.scrollView addSubview:view];[self.viewsArray addObject:view];
  }[self.scrollView setContentSize:CGSizeMake(frame.size.width*[self.items count], frame.size.height)];}
  </code></pre>
  
  <p>Each MyView have delete button with delegate, delegate removes view from viewsArray and run this method for now.</p>