title: UIScrollView paging with buttons
body: <p>i was wondering how you create a paging UIScrollView with buttons as the objects?</p>
  
  <p>So far i have figured out to make a similar UIScrollView with images instead which looks like this: </p>
  
  <pre><code>    - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  
      NSArray *pictures = [NSArray arrayWithObjects: [UIImage imageNamed:@"nr1"], [UIImage imageNamed:@"nr2"], nil];
  
  
      for (int i = 0; i &lt; pictures.count; i++) {
          CGRect frame;
          frame.origin.x = self.scrollView.frame.size.width * i;
          frame.origin.y = 0;
          frame.size = self.scrollView.frame.size;
  
          UIImageView *subview = [[UIImageView alloc] initWithFrame:frame];
          subview.image = [pictures objectAtIndex:i];
          [self.scrollView addSubview:subview];
      }
  
      self.scrollView.contentSize = CGSizeMake(self.scrollView.frame.size.width * pictures.count, self.scrollView.frame.size.height);
  
  }
  </code></pre>
  
  <p>Any tutorials would be appreciated :)</p>