title: How to center iCarousel view
body: <p>I have 6 button that i want to animate using iCarousel, the code like this</p>
  
  <pre><code>- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view
  {
  UIButton *button = (UIButton *)view;
  if (button == nil)
  {
      self.icon = [NSMutableArray arrayWithObjects:@"icon-02.png",@"icon-03.png",@"icon-04.png",@"icon-05.png",@"icon-06.png",@"icon-07.png",nil];
  
  
      //no button available to recycle, so create new one
      UIImage *image = [UIImage imageNamed:[icon objectAtIndex:index]];
      button = [UIButton buttonWithType:UIButtonTypeCustom];
      button.frame = CGRectMake(0.0, 0.0, 130.0f, 130.0f);
      [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
      [button setBackgroundImage:image forState:UIControlStateNormal];
      //button.titleLabel.font = [button.titleLabel.font fontWithSize:50];
      //[button addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside];
  }
  
  
  
  return button;
  }
  </code></pre>
  
  <p>But the button is not in the center, does anyone now hot to make the carousel in centre, i already resize the uiview but still not working.
  thanks...</p>