title: adding reflection to iCarousel
body: <p>I tried to add reflection to my icarousel. Firstly my code was like this and it was working wright.</p>
  
  <pre><code>- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index     reusingView:(UIView *)view
  {
  UIButton* button = (UIButton *)view;
  if (button == nil)
  {
      //no button available to recycle, so create new one
      UIImage *image = [arrKitapKapaklari objectAtIndex:index];
      button = [UIButton buttonWithType:UIButtonTypeCustom];
      button.frame = CGRectMake(0.0f, 0.0f, image.size.width, image.size.height);
      [button setTitleColor:[UIColor clearColor] forState:UIControlStateNormal];
      [button setBackgroundImage:image forState:UIControlStateNormal];
      button.titleLabel.font = [button.titleLabel.font fontWithSize:50];
      [button addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside];
  }
  
  
  //set button label
  [button setTitle:[NSString stringWithFormat:@"%i", index] forState:UIControlStateNormal];
  
  return button;
  </code></pre>
  
  <p>}</p>
  
  <p>After changing, my code became like this:</p>
  
  <pre><code>- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(ReflectionView *)view
  {
  
  
  UIButton* button = nil;
  if (button == nil)
  {
  
     view = [[[ReflectionView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 150.0f, 200.0f)] autorelease];
      //no button available to recycle, so create new one
      UIImage *image = [arrKitapKapaklari objectAtIndex:index];
      button = [UIButton buttonWithType:UIButtonTypeCustom];
      button.frame = CGRectMake(0.0f, 0.0f, image.size.width, image.size.height);
      [button setTitleColor:[UIColor clearColor] forState:UIControlStateNormal];
      [button setBackgroundImage:image forState:UIControlStateNormal];
      button.titleLabel.font = [button.titleLabel.font fontWithSize:50];
      [button addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside];
          [view addSubview:button];
  }
  
  
  
  //set button label
  [button setTitle:[NSString stringWithFormat:@"%i", index] forState:UIControlStateNormal];
  [view update];
  return view;
  </code></pre>
  
  <p>}</p>
  
  <p>Reflection appears. But the problem is when i move the carousel view, images not flowing correctly. Sometimes another carousel view appears.</p>
  
  <p>Do you have any idea what causes that?</p>