title: Scrolling an Image with ImageView iOS
body: <p>I'm trying to make an app for a restaurant and the to display the food menu as a scrollable image. The image is pulled form a config file.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // back button
      UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
      [button setImage:[UIImage imageNamed:@"btn-back.png"] forState:UIControlStateNormal];
      button.frame = CGRectMake(0.0f, 0.0f, 46.0f, 28.0f);
      [button addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
      UIBarButtonItem *customBarItem = [[UIBarButtonItem alloc] initWithCustomView:button];
      self.navigationItem.leftBarButtonItem = customBarItem;
      [customBarItem release];
  
  
      [self setTitle:[menu objectForKey:@"title"]];
      [scrollView2 setScrollEnabled:YES];
  
      NSString *imageName = [menu objectForKey:@"imageName"];
      if (![imageName isEqualToString:@""]) {
          UIImage *image = [UIImage imageNamed:imageName];
  
          [imageView setImage:image];
          [scrollView2 addSubview:imageView];
          [imageView release];
      }
      [textView setText:[menu objectForKey:@"description"]];
  }
  </code></pre>
  
  <p>As of now the image doesn't scroll, but appears as a static image. Could anyone please help me modify this code so the user can vertically scroll the image.
  Thanks a lot.</p>